fix build errors
This commit is contained in:
parent
543a0a8f1e
commit
b315d2a84e
|
@ -87,6 +87,8 @@ export default function PopupPage({ opener }) {
|
||||||
if (!isExtension) {
|
if (!isExtension) {
|
||||||
setWallet(selectedWallet);
|
setWallet(selectedWallet);
|
||||||
}
|
}
|
||||||
|
// using stronger condition here
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [selectedWalletAddress]);
|
}, [selectedWalletAddress]);
|
||||||
|
|
||||||
|
|
||||||
|
@ -104,6 +106,7 @@ export default function PopupPage({ opener }) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [origin]);
|
}, [origin]);
|
||||||
|
|
||||||
// (Extension only) Set wallet once connectedWallet is retrieved.
|
// (Extension only) Set wallet once connectedWallet is retrieved.
|
||||||
|
@ -111,6 +114,8 @@ export default function PopupPage({ opener }) {
|
||||||
if (isExtension && connectedAccount) {
|
if (isExtension && connectedAccount) {
|
||||||
setWallet(selectedWallet);
|
setWallet(selectedWallet);
|
||||||
}
|
}
|
||||||
|
// using stronger condition here
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [connectedAccount, selectedWalletAddress]);
|
}, [connectedAccount, selectedWalletAddress]);
|
||||||
|
|
||||||
// Send a disconnect event if this window is closed, this component is
|
// Send a disconnect event if this window is closed, this component is
|
||||||
|
|
Loading…
Reference in New Issue