Selaa lähdekoodia

move to portfolio if already authenticated

Daniel Bohry 9 kuukautta sitten
vanhempi
sitoutus
e22ea17ccd
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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);