From 9e29d18a70de64fcb12ab526e259c03f1d5b2382 Mon Sep 17 00:00:00 2001 From: lemonknowsall Date: Fri, 24 Oct 2025 22:45:29 -0700 Subject: [PATCH] on-chain fee display bug --- src/components/wallet/TransactionHistory.tsx | 2 +- src/hooks/useBitcoinBalance.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/wallet/TransactionHistory.tsx b/src/components/wallet/TransactionHistory.tsx index 2a1c6d8..e61cc31 100644 --- a/src/components/wallet/TransactionHistory.tsx +++ b/src/components/wallet/TransactionHistory.tsx @@ -200,7 +200,7 @@ export function TransactionHistory({ {tx.type === 'sent' ? '-' : '+'} {formatBitcoinAmount(tx.amount)} - {tx.fee && tx.type === 'sent' && ( + {tx.fee !== undefined && tx.fee > 0 && tx.type === 'sent' && (
Fee: {formatBitcoinAmount(tx.fee)}
diff --git a/src/hooks/useBitcoinBalance.ts b/src/hooks/useBitcoinBalance.ts index 38c0c13..9f200f6 100644 --- a/src/hooks/useBitcoinBalance.ts +++ b/src/hooks/useBitcoinBalance.ts @@ -60,7 +60,7 @@ async function fetchBitcoinTransactions(address: string): Promise