Skip to content

Commit

Permalink
fix: Improved pathname validation
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Mar 15, 2024
1 parent 5ebe168 commit c8c48bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/account/accountProfileUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const useCompleteProfile = () => {
return;
}

if (location.pathname === '/account/profile/completeProfile') {
if (location?.pathname.includes('/account/profile/completeProfile')) {
return;
}

Expand Down

0 comments on commit c8c48bb

Please sign in to comment.