diff --git a/src/App.tsx b/src/App.tsx index ea2d006..974a28d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -23,7 +23,7 @@ const App: React.FC = () => { }; initializeApp(firebaseConfig); - const { initializeFromLocalStorge, login, isLoggedIn } = useAuthStore(); + const { initializeFromLocalStorge, login, isLoggedIn, name } = useAuthStore(); const { showProfile } = useShowProfileStore(); const { isLoading } = useLoadingStore(); @@ -59,7 +59,7 @@ const App: React.FC = () => { return ( ); diff --git a/src/store/authStore.tsx b/src/store/authStore.tsx index 8e26102..13ef54b 100644 --- a/src/store/authStore.tsx +++ b/src/store/authStore.tsx @@ -39,7 +39,7 @@ export const useAuthStore = create((set) => ({ profile: "", username: null, email: "", - name: "", + name: "isloading39084*+/46848/*/", token: "", timetable: {}, regNo: "", // Initialize timetable as an empty object