From: Jérôme Benoit Date: Sun, 3 Mar 2024 21:19:19 +0000 (+0100) Subject: fix(ui): handle missing version in simulator state X-Git-Tag: v1.3.0~60 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1fa3425af7b41fd728168fae1cef29d603767609;p=e-mobility-charging-stations-simulator.git fix(ui): handle missing version in simulator state Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue index 2546c6bf..de7cd746 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -150,7 +150,7 @@ const simulatorButtonClass = computed(() => ) const simulatorButtonMessage = computed( () => - `${state.value.simulatorState?.started === true ? 'Stop' : 'Start'} Simulator ${state.value.simulatorState?.version != null ? `(${state.value.simulatorState.version})` : ''}` + `${state.value.simulatorState?.started === true ? 'Stop' : 'Start'} Simulator${state.value.simulatorState?.version != null ? ` (${state.value.simulatorState.version})` : ''}` ) const app = getCurrentInstance()