Skip to content

Commit

Permalink
Close modal after redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Mar 5, 2024
1 parent ee7e643 commit ee2ffb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/profile-selector/MyAccountMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const AccountMenu: React.FunctionComponent<AddressProps> = ({ address, ow
setIsOpenProfileModal(false)
} else if (name === 'redirect') {
router.push(value)
setIsOpenProfileModal(false)
}
}
}, [])
Expand Down

0 comments on commit ee2ffb8

Please sign in to comment.