Skip to content

Commit 5b19d63

Browse files
authored
fix: crashing tx history after account switch (#1556)
1 parent 19c30d2 commit 5b19d63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/nami/src/adapters/transactions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,13 +529,13 @@ export const useWalletTxs = () => {
529529
]);
530530

531531
useEffect(() => {
532-
if (!rewardAccounts) return;
532+
if (!rewardAccounts || !transactions) return;
533533
fetchWalletActivities();
534534
}, [
535535
fetchWalletActivities,
536-
transactions.history,
537-
transactions.outgoing.inFlight,
538-
transactions.outgoing.signed,
536+
transactions?.history,
537+
transactions?.outgoing.inFlight,
538+
transactions?.outgoing.signed,
539539
walletAddresses,
540540
assetInfo,
541541
rewardAccounts,

0 commit comments

Comments
 (0)