diff options
| author | Adam Soltys <[email protected]> | 2023-12-30 08:11:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-30 08:11:01 -0800 |
| commit | 00c68b6c8df42c84a86292d93758a760961a3a31 (patch) | |
| tree | 6a2b1380335a86a426f97f1d054e8a18021d906f /src | |
| parent | f92a4586027f2b6dc3d3f0f43b4228aa59d80326 (diff) | |
| download | coinos-ui-00c68b6c8df42c84a86292d93758a760961a3a31.tar.gz coinos-ui-00c68b6c8df42c84a86292d93758a760961a3a31.zip | |
fix txid link
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index aaf056a3..1acd0d3d 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -44,6 +44,10 @@ fee = fee || 0; + let txid, vout; + if (amount > 0) [txid, vout] = ref.split(":"); + else txid = hash; + let direction = ""; onMount(() => { direction = amount > 0 ? $t("payments.from") : $t("payments.to"); @@ -153,8 +157,10 @@ <span class="text-lg text-secondary">Txid</span> <div class="flex"> <div> - <a href={`${expl}/tx/${hash}`} target="_blank" rel="noreferrer" - >{hash}</a + <a + href={`${expl}/tx/${txid}${vout ? "#vout=" + vout : ""}`} + target="_blank" + rel="noreferrer">{txid}</a > </div> <button |
