Skip to content

A self-hosted media server and file management system

fix: auth clear toast header malformed

aminnausinbb51c34d1734
diff --git a/resources/js/stores/AuthStore.ts b/resources/js/stores/AuthStore.ts
index adc8de1b..2e70c4a5 100644
--- a/resources/js/stores/AuthStore.ts
+++ b/resources/js/stores/AuthStore.ts
@@ -57,7 +57,7 @@ export const useAuthStore = defineStore('Auth', () => {
localStorage.removeItem('auth-token'); // Legacy: Clears existing auth-tokens. No auth-tokens are created ever again.
if (!showMessage) return;
- const message = 'Login Expired' + status ? ` ${status}` : '';
+ const message = 'Login Expired' + (status ? ` ${status}` : '');
// Can remove?
toast.warning(message, {