diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2025-01-21 01:21:09 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2025-01-21 01:21:09 +0000 |
| commit | 5d162cb8e0f5d594905a56a9b16f4f68df5f6631 (patch) | |
| tree | cd244bada4f4749a62cf8f8bd533ab54b585fb8f /stores/error.ts | |
| parent | bfb60f146724219379879468802ee65d02746156 (diff) | |
Improve frontend
Diffstat (limited to 'stores/error.ts')
| -rw-r--r-- | stores/error.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
