From 288919b21e0d999fe8d03a956726fd9d232b27b1 Mon Sep 17 00:00:00 2001 From: sproxet <17163658+sproxet@users.noreply.github.com> Date: Fri, 15 Sep 2023 19:09:45 +0700 Subject: [PATCH] Fix an issue where block height segments <100 were displayed with too few digits. --- src/renderer/components/Sidebar/BlockchainStatus.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/Sidebar/BlockchainStatus.vue b/src/renderer/components/Sidebar/BlockchainStatus.vue index 7db40cb6..d2116d22 100644 --- a/src/renderer/components/Sidebar/BlockchainStatus.vue +++ b/src/renderer/components/Sidebar/BlockchainStatus.vue @@ -64,7 +64,7 @@ export default { const segments = []; let x = this.currentBlockHeight_; while (x > 0) { - segments.push(x % 1000); + segments.push((1000 + x % 1000).toString().slice(1)); x = Math.floor(x / 1000); } return segments.reverse().join(',');