Skip to content

Commit

Permalink
refactor: previousUrl 이중부정구문 긍정으로 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhokim98 committed Nov 27, 2024
1 parent 03ce768 commit 68aeb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/hooks/useLoginPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useLoginPage = () => {
const queryResult = await requestGetClientId();
const clientId = queryResult.data?.clientId;

if (typeof previousUrl !== 'undefined') {
if (typeof previousUrl === 'string') {
SessionStorage.set<string>(SESSION_STORAGE_KEYS.previousUrlForLogin, previousUrl);
}

Expand Down

0 comments on commit 68aeb04

Please sign in to comment.