Преглед на файлове

move to portfolio if already authenticated

Daniel Bohry преди 9 месеца
родител
ревизия
e22ea17ccd
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/routes/login/+page.svelte

+ 1 - 0
src/routes/login/+page.svelte

@@ -18,6 +18,7 @@
 			const storedAuth = localStorage.getItem('authentication');
 			if (storedAuth) {
 				authentication.set(JSON.parse(storedAuth));
+				goto("/portfolio");
 			}
 		} catch (error) {
 			console.error('Error parsing stored auth:', error);