aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-29 02:09:54 -0800
committerAdam Soltys <[email protected]>2023-12-29 02:09:54 -0800
commitfd18d76ad1dab1d2564415a1d2515721f4dfae32 (patch)
tree7b6b7d11b36160db55713fda0d8ccb12fe8eef19 /src
parentc2c201ab314e0897476e80163eda40e7307ee21a (diff)
downloadcoinos-ui-fd18d76ad1dab1d2564415a1d2515721f4dfae32.tar.gz
coinos-ui-fd18d76ad1dab1d2564415a1d2515721f4dfae32.zip
fix tx link
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/payment/[id]/+page.svelte5
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"