diff options
| author | Adam Soltys <[email protected]> | 2023-12-29 02:09:54 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-29 02:09:54 -0800 |
| commit | fd18d76ad1dab1d2564415a1d2515721f4dfae32 (patch) | |
| tree | 7b6b7d11b36160db55713fda0d8ccb12fe8eef19 /src | |
| parent | c2c201ab314e0897476e80163eda40e7307ee21a (diff) | |
| download | coinos-ui-fd18d76ad1dab1d2564415a1d2515721f4dfae32.tar.gz coinos-ui-fd18d76ad1dab1d2564415a1d2515721f4dfae32.zip | |
fix tx link
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index df2277b7..df33c323 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -22,7 +22,7 @@ let { user, payment: p } = data; let { username } = user; - let { id, amount, created, rate, type, ref, tip, ourfee, fee, currency } = p; + let { id, hash, amount, created, rate, type, ref, tip, ourfee, fee, currency } = p; let a = Math.abs(amount); let print = async () => { @@ -31,6 +31,7 @@ }; fee = fee || 0; + let [txid, vout] = ref.split(':'); let direction = ""; onMount(() => { @@ -141,7 +142,7 @@ <span class="text-lg text-secondary">Txid</span> <div class="flex"> <div> - <a href={`${expl}/tx/${id}`} target="_blank" rel="noreferrer">{id}</a> + <a href={`${expl}/tx/${txid}#vout=${vout}`} target="_blank" rel="noreferrer">{txid}</a> </div> <button class="flex font-bold hover:opacity-80 mb-auto my-auto" |
