From e07d33fd41da9af99f03b0fcb9b3bd0e02f91786 Mon Sep 17 00:00:00 2001 From: Nikola Ubavic <53820106+ubavic@users.noreply.github.com> Date: Tue, 7 Dec 2021 18:37:22 +0100 Subject: [PATCH] fix: Dialog title shows undefined on confirm --- .../src/components/machineActions/MachineActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/components/machineActions/MachineActions.js b/new-lamassu-admin/src/components/machineActions/MachineActions.js index 60d20174..fa129c7f 100644 --- a/new-lamassu-admin/src/components/machineActions/MachineActions.js +++ b/new-lamassu-admin/src/components/machineActions/MachineActions.js @@ -93,7 +93,7 @@ const MachineActions = memo(({ machine, onActionSuccess }) => { }, onCompleted: () => { onActionSuccess && onActionSuccess() - setAction({ command: null }) + setAction({ display: action.display, command: null }) } })