From 712b31e3ff613aeae3fcb3b6cedca6722412b9fc Mon Sep 17 00:00:00 2001 From: Nikola Ubavic <53820106+ubavic@users.noreply.github.com> Date: Thu, 9 Dec 2021 21:13:21 +0100 Subject: [PATCH] fix: revert explicit cast --- .../src/components/machineActions/MachineActions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/components/machineActions/MachineActions.js b/new-lamassu-admin/src/components/machineActions/MachineActions.js index fa129c7f..815d8e90 100644 --- a/new-lamassu-admin/src/components/machineActions/MachineActions.js +++ b/new-lamassu-admin/src/components/machineActions/MachineActions.js @@ -97,6 +97,7 @@ const MachineActions = memo(({ machine, onActionSuccess }) => { } }) + const confirmDialogOpen = Boolean(action.command) const disabled = !!(action?.command === 'restartServices' && loadingEvents) const machineStatusPreflight = actionToDo => { @@ -192,7 +193,7 @@ const MachineActions = memo(({ machine, onActionSuccess }) => {