Skip to content

Commit

Permalink
Fix(mogua-station#234): Modify setUser 함수를 언제나 실행되게 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuayeyo committed Feb 12, 2025
1 parent deff3fd commit d380052
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/auths/useSignIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ const useSignIn = () => {
};
}

setUser(responseData.data.user);

if (options?.redirect !== false) {
setUser(responseData.data.user);
await router.push("/");
}
return { success: true };
Expand Down

0 comments on commit d380052

Please sign in to comment.