Skip to content

Commit

Permalink
fix: info box should disappear when you disconnect your account (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum authored May 12, 2022
1 parent 8a4730b commit 91b8402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/offers/OfferDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default function OfferDetail() {
function handleMessageFromIframe(e: MessageEvent) {
const { target, message, wallet } = e.data || {};

if (target === "boson" && message === "wallet-changed" && wallet) {
if (target === "boson" && message === "wallet-changed") {
setAccount(wallet);
}
}
Expand Down

0 comments on commit 91b8402

Please sign in to comment.