mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
Merge pull request #2681 from BlueWallet/2631
FIX: TypeError: undefined is not an object (evaluating 'O.current.get…
This commit is contained in:
commit
82889c3266
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user