fix(ui): handle missing version in simulator state
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Mar 2024 21:19:19 +0000 (22:19 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Mar 2024 21:19:19 +0000 (22:19 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/views/ChargingStationsView.vue

index 2546c6bf6fcf5de18af79086c306ddd68140c3fd..de7cd746fb3999d0a3df9ef1426eaeb3ee4155ee 100644 (file)
@@ -150,7 +150,7 @@ const simulatorButtonClass = computed<string>(() =>
 )
 const simulatorButtonMessage = computed<string>(
   () =>
-    `${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()