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"
|
color="primary"
|
||||||
className={classes.submit}
|
className={classes.submit}
|
||||||
onClick={clickHandler}
|
onClick={clickHandler}
|
||||||
disabled={!carState.online}
|
disabled={!carState ? true : !carState.online}
|
||||||
>
|
>
|
||||||
Send
|
Send
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user