From 37131f34911e3bb621f5c25f6ab7eba6543b4f56 Mon Sep 17 00:00:00 2001 From: jaonoctus Date: Tue, 10 Dec 2024 01:09:20 -0300 Subject: [PATCH] fix(payment-hash): show last bytes --- src/pages/HomeView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/HomeView.vue b/src/pages/HomeView.vue index fdf6b23..402a487 100644 --- a/src/pages/HomeView.vue +++ b/src/pages/HomeView.vue @@ -91,7 +91,7 @@ async function checkPaymentProof() { } function formatLong(text: string) { - const long = text.replace(/\s+/g, '').toUpperCase().slice(0, 16) + const long = text.replace(/\s+/g, '').toUpperCase().slice(Math.max(0, text.length - 16)) return `0x${long}` }