CEC-4517 Diagnostic Command hot fix (#373)
* CEC-4517 Diagnostic Command hot fix Fix null access. * disable if no car state
This commit is contained in:
@@ -103,7 +103,7 @@ const SendDiagnosticCommand = ({ vin, token, classes }) => {
|
||||
color="primary"
|
||||
className={classes.submit}
|
||||
onClick={clickHandler}
|
||||
disabled={!carState.online}
|
||||
disabled={!carState ? true : !carState.online}
|
||||
>
|
||||
Send
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user