Skip to content

Commit

Permalink
fix: update show modal if address changes
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 25, 2024
1 parent 3debe9d commit 0593a63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/leaderboard/ProgressModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export default function ProgressModal() {

useEffect(() => {
setShouldShowModal(!progressModalStorage.getIsClosed() && !!myAddress)
}, [])
}, [myAddress])

if (!shouldShowModal) return null

return <InnerProgressModal />
Expand Down

0 comments on commit 0593a63

Please sign in to comment.