From 5d162cb8e0f5d594905a56a9b16f4f68df5f6631 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Tue, 21 Jan 2025 01:21:09 +0000 Subject: Improve frontend --- stores/error.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stores/error.ts') diff --git a/stores/error.ts b/stores/error.ts index 19ff289..dfb5850 100644 --- a/stores/error.ts +++ b/stores/error.ts @@ -2,9 +2,9 @@ import { type Event } from "./schedule"; import { defineStore } from "pinia"; export const useErrorStore = defineStore('error', () => { - const error = ref(null as Event | null) - const setError = (event: Event) => { - error.value = event + const error = ref(null as string | null) + const setError = (newError: string) => { + error.value = newError } const clearError = () => { error.value = null -- cgit v1.2.3-70-g09d2