Skip to content

Commit

Permalink
check if local storage combinedtransactions is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
4eyes52 committed Sep 25, 2024
1 parent 8868949 commit 4ad9f84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/nextjs/src/app/_components/wallet/WalletSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -145,7 +146,7 @@ export const WalletSheet = () => {
</Dialog>
</div>
</div>
{newTransactionCount && newTransactionCount > 0 ? <QueryTransactionList /> : <LocalStorageTransactionList />}
{(newTransactionCount && newTransactionCount > 0) || !combinedtransactions ? <QueryTransactionList /> : <LocalStorageTransactionList />}
</div>
</SheetContent>
</Sheet>
Expand Down

0 comments on commit 4ad9f84

Please sign in to comment.