diff --git a/src/components/mini-widgets/GenericIndicator.vue b/src/components/mini-widgets/GenericIndicator.vue index cbd21a26e..65b2ed419 100644 --- a/src/components/mini-widgets/GenericIndicator.vue +++ b/src/components/mini-widgets/GenericIndicator.vue @@ -106,7 +106,12 @@ onBeforeMount(() => { const store = useMainVehicleStore() const currentState = ref(0) -const parsedState = computed(() => round(Number(options.variableMultiplier) * Number(currentState.value))) +const parsedState = computed(() => { + if (currentState.value) { + return round(Number(options.variableMultiplier) * Number(currentState.value)).toString() + } + return '--' +}) const updateVariableState = (): void => { currentState.value = store.genericVariables[options.variableName as string]