fix build errors

This commit is contained in:
jhl-alameda 2021-04-12 15:54:57 +08:00
parent 543a0a8f1e
commit b315d2a84e
1 changed files with 5 additions and 0 deletions

View File

@ -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]);
@ -104,6 +106,7 @@ export default function PopupPage({ opener }) {
}
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [origin]);
// (Extension only) Set wallet once connectedWallet is retrieved.
@ -111,6 +114,8 @@ export default function PopupPage({ opener }) {
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