Skip to content

Commit

Permalink
fix: extension invite code modal display for the prev account
Browse files Browse the repository at this point in the history
  • Loading branch information
PetromirDev committed Aug 7, 2024
1 parent 74e0b46 commit f53943b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Wallet/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ export default function Wallet(props) {
}
const key = props.rewardsData?.rewards.extensionKey?.key
const used = props.rewardsData?.rewards.extensionKey?.used
const rewardsAccountAddr = props.rewardsData?.rewards.accountAddr

if (!key || used || rewardsAccountAddr !== account.id) return

if (!key || used) return
const isSeen = extensionInviteCodeModalSeenBy.includes(account.id)

if (isSeen) return
Expand Down

0 comments on commit f53943b

Please sign in to comment.