Merge pull request #2681 from BlueWallet/2631

FIX: TypeError: undefined is not an object (evaluating 'O.current.get…
This commit is contained in:
GLaDOS 2021-02-25 20:32:25 +00:00 committed by GitHub
commit 82889c3266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,11 +117,12 @@ const TransactionsStatus = () => {
}, [tx, wallets]);
useEffect(() => {
if (wallet) {
setSelectedWallet(wallet.current.getID());
const walletID = wallet.current?.getID();
if (walletID) {
setSelectedWallet(wallet.current?.getID());
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [wallet]);
}, [wallet.current]);
useEffect(() => {
console.log('transactions/details - useEffect');