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
commitca2a2e3cd9637e66e5b5f87106f5ef376fb063fa (patch)
tree7b6b7d11b36160db55713fda0d8ccb12fe8eef19 /src
parent43b767a5e87ae76a8d26a59cda4aac76dfefe09b (diff)
downloadcoinos-ui-ca2a2e3cd9637e66e5b5f87106f5ef376fb063fa.tar.gz
coinos-ui-ca2a2e3cd9637e66e5b5f87106f5ef376fb063fa.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"