Skip to content

Commit 37131f3

Browse files
committed
fix(payment-hash): show last bytes
1 parent 7a3019a commit 37131f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/HomeView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async function checkPaymentProof() {
9191
}
9292
9393
function formatLong(text: string) {
94-
const long = text.replace(/\s+/g, '').toUpperCase().slice(0, 16)
94+
const long = text.replace(/\s+/g, '').toUpperCase().slice(Math.max(0, text.length - 16))
9595
return `0x${long}`
9696
}
9797
</script>

0 commit comments

Comments
 (0)