From ff7b7abadf163d76243d47f138758ce3a5625af7 Mon Sep 17 00:00:00 2001 From: Eduard Voronkin <116690094+eduardvoronkin@users.noreply.github.com> Date: Fri, 23 Jun 2023 12:51:38 -0700 Subject: [PATCH] CEC-4517 Diagnostic Command hot fix (#373) * CEC-4517 Diagnostic Command hot fix Fix null access. * disable if no car state --- src/components/Controls/SendDiagnosticCommand/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Controls/SendDiagnosticCommand/index.jsx b/src/components/Controls/SendDiagnosticCommand/index.jsx index 1e66d03..85fdd02 100644 --- a/src/components/Controls/SendDiagnosticCommand/index.jsx +++ b/src/components/Controls/SendDiagnosticCommand/index.jsx @@ -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