From 4ad9f847e3ae58e52ed6d477c5837f751062f0fa Mon Sep 17 00:00:00 2001 From: 4eyes52 Date: Wed, 25 Sep 2024 15:43:46 -0400 Subject: [PATCH] check if local storage combinedtransactions is empty --- apps/nextjs/src/app/_components/wallet/WalletSheet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/nextjs/src/app/_components/wallet/WalletSheet.tsx b/apps/nextjs/src/app/_components/wallet/WalletSheet.tsx index bb6fc94c..05324103 100644 --- a/apps/nextjs/src/app/_components/wallet/WalletSheet.tsx +++ b/apps/nextjs/src/app/_components/wallet/WalletSheet.tsx @@ -33,6 +33,7 @@ import { QueryTransactionList, LocalStorageTransactionList } from "./transaction export const WalletSheet = () => { const transactionState = useStore(useTransactionManager, (state) => state); const newTransactionCount = transactionState?.newTransactionCount; + const combinedtransactions = transactionState?.combinedTransactions; const { isConnected: isL2Connected, @@ -145,7 +146,7 @@ export const WalletSheet = () => { - {newTransactionCount && newTransactionCount > 0 ? : } + {(newTransactionCount && newTransactionCount > 0) || !combinedtransactions ? : }