Skip to content

Commit

Permalink
Fix(#234): Modify setUser 함수를 언제나 실행되게 변경 (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuayeyo authored Feb 13, 2025
2 parents ee201ea + d380052 commit ff24c94
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 ff24c94

Please sign in to comment.