Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 6318423

Browse files
author
robinpdev
committed
login redirect bug hotfix (epic style swag)
1 parent 939a8b5 commit 6318423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/lib/api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ let userData: UserData | undefined = undefined;
498498

499499
export async function getUserData(): Promise<UserData> {
500500
if(!userData && !localStorage.getItem('user') && window.location.pathname !== "/"){
501-
window.location.href = "/";
501+
await fetchUserData();
502502
}
503503

504504
if (userData) {

0 commit comments

Comments
 (0)