Skip to content

Commit f3a2958

Browse files
committed
fix(tx page): correct hash name
1 parent e8f9661 commit f3a2958

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

pages/tx/[hash].vue

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ if (!rawTx.value) {
1919
}
2020
2121
useHead({
22-
title: `Transaction ${tx.value?.hash.toUpperCase().slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
23-
.toUpperCase()
24-
.slice(0, 4)} - Celestia Explorer`,
22+
title: `Transaction ${tx.value?.hash.toUpperCase().slice(0, 4)} ••• ${tx.value?.hash.toUpperCase().slice(-4)} - Celestia Explorer`,
2523
link: [
2624
{
2725
rel: "canonical",
@@ -31,27 +29,21 @@ useHead({
3129
meta: [
3230
{
3331
name: "description",
34-
content: `Celestia Transaction ${tx.value?.hash
32+
content: `Celestia Transaction ${tx.value?.hash.toUpperCase().slice(0, 4)} ••• ${tx.value?.hash
3533
.toUpperCase()
36-
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
37-
.toUpperCase()
38-
.slice(0, 4)}. The timestamp, hash, events, messages, metadata, gas used.`,
34+
.slice(-4)}. The timestamp, hash, events, messages, metadata, gas used.`,
3935
},
4036
{
4137
property: "og:title",
42-
content: `Transaction ${tx.value?.hash
43-
.toUpperCase()
44-
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
38+
content: `Transaction ${tx.value?.hash.toUpperCase().slice(0, 4)} ••• ${tx.value?.hash
4539
.toUpperCase()
46-
.slice(0, 4)} - Celestia Explorer`,
40+
.slice(-4)} - Celestia Explorer`,
4741
},
4842
{
4943
property: "og:description",
50-
content: `Celestia Transaction ${tx.value?.hash
51-
.toUpperCase()
52-
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
44+
content: `Celestia Transaction ${tx.value?.hash.toUpperCase().slice(0, 4)} ••• ${tx.value?.hash
5345
.toUpperCase()
54-
.slice(0, 4)}. The timestamp, hash, events, messages, metadata, gas used.`,
46+
.slice(-4)}. The timestamp, hash, events, messages, metadata, gas used.`,
5547
},
5648
{
5749
property: "og:url",
@@ -63,19 +55,15 @@ useHead({
6355
},
6456
{
6557
name: "twitter:title",
66-
content: `Transaction ${tx.value?.hash
58+
content: `Transaction ${tx.value?.hash.toUpperCase().slice(0, 4)} ••• ${tx.value?.hash
6759
.toUpperCase()
68-
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
69-
.toUpperCase()
70-
.slice(0, 4)} - Celestia Explorer`,
60+
.slice(-4)} - Celestia Explorer`,
7161
},
7262
{
7363
name: "twitter:description",
74-
content: `Celestia Transaction ${tx.value?.hash
75-
.toUpperCase()
76-
.slice(tx.value?.hash.length - 4, tx.value?.hash.length)} ••• ${tx.value?.hash
64+
content: `Celestia Transaction ${tx.value?.hash.toUpperCase().slice(0, 4)} ••• ${tx.value?.hash
7765
.toUpperCase()
78-
.slice(0, 4)}. The timestamp, hash, events, messages, metadata, gas used.`,
66+
.slice(-4)}. The timestamp, hash, events, messages, metadata, gas used.`,
7967
},
8068
{
8169
name: "twitter:card",
@@ -94,9 +82,7 @@ useHead({
9482
{ link: '/txs', name: 'Transactions' },
9583
{
9684
link: route.fullPath,
97-
name: `Transaction ${tx.hash.toUpperCase().slice(tx.hash.length - 4, tx.hash.length)} ••• ${tx.hash
98-
.toUpperCase()
99-
.slice(0, 4)}`,
85+
name: `Transaction ${tx.hash.toUpperCase().slice(0, 4)} ••• ${tx.hash.toUpperCase().slice(-4)}`,
10086
},
10187
]"
10288
:class="$style.breadcrumbs"

0 commit comments

Comments
 (0)