aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-07-15 14:14:02 -0700
committerAdam Soltys <[email protected]>2025-07-15 14:14:02 -0700
commit75de7d23fb7557ad7173da4f8bd4697da0cfe42b (patch)
tree249fdaf78f6554d64be48032475b9093d2994ce1 /src
parent9ea218a225cd3b6d3a0fcff5380e5e9be37ec2af (diff)
downloadcoinosv3-75de7d23fb7557ad7173da4f8bd4697da0cfe42b.tar.gz
coinosv3-75de7d23fb7557ad7173da4f8bd4697da0cfe42b.zip
combine balances
Diffstat (limited to 'src')
-rw-r--r--src/routes/+page.svelte12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index f82805e..d2d4a97 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -243,10 +243,7 @@
{:else if typeof balance !== 'undefined'}
<div class="flex items-center gap-2">
<div>
- Balance: {balance} sats
- {#if pending}
- <span class="text-orange-600">({pending} pending)</span>
- {/if}
+ Balance: {balance + pending} sats
</div>
{#if balance + pending > 0}
<button type="submit" class="btn ml-auto" onclick={() => (withdrawing = true)}>
@@ -257,7 +254,12 @@
{/if}
{#if txid}
- <a href={`https://mempool.space/tx/${txid}`}>{txid}</a>
+ <div class="flex">
+ <div>Transaction completed!</div>
+ <div class="ml-auto">
+ <a href={`https://mempool.space/tx/${txid}`} class="btn">Details</a>
+ </div>
+ </div>
{:else if withdrawing}
<input class="input w-full" placeholder="Destination address" bind:value={destination} />