Don't show swap button when onchain = 0

This commit is contained in:
Tony Giorgio
2023-06-19 18:44:51 -05:00
committed by Paul Miller
parent 5a64de87df
commit 89a7d6b288

View File

@@ -60,7 +60,7 @@ export default function BalanceBox(props: { loading?: boolean }) {
<Show when={!props.loading} fallback={<LoadingShimmer />}>
<div class="flex justify-between">
<Amount amountSats={totalOnchain()} showFiat />
<Show when={!emptyBalance()}>
<Show when={totalOnchain() != 0n }>
<div class="self-end justify-self-end">
<A href="/swap" class={STYLE}>
<img