Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhl-alameda committed Apr 12, 2021
1 parent 543a0a8 commit b315d2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/PopupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export default function PopupPage({ opener }) {
if (!isExtension) {
setWallet(selectedWallet);
}
// using stronger condition here
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedWalletAddress]);


Expand All @@ -104,13 +106,16 @@ export default function PopupPage({ opener }) {
}
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [origin]);

// (Extension only) Set wallet once connectedWallet is retrieved.
useEffect(() => {
if (isExtension && connectedAccount) {
setWallet(selectedWallet);
}
// using stronger condition here
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [connectedAccount, selectedWalletAddress]);

// Send a disconnect event if this window is closed, this component is
Expand Down

0 comments on commit b315d2a

Please sign in to comment.