We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b897902 commit 004849cCopy full SHA for 004849c
src/windows/SyncInfo.tsx
@@ -90,7 +90,12 @@ export default function SyncInfo({}: ISyncInfoProps) {
90
91
const currentProgress = (nodeInfo?.blockHeight ?? 0) - (initialKnownBlockheight ?? 0);
92
const numBlocksUntilSynced = (bestBlockheight ?? 0) - (initialKnownBlockheight ?? 0);
93
- let progress = currentProgress / numBlocksUntilSynced;
+
94
+ let progress = 1;
95
+ if (numBlocksUntilSynced > 0) {
96
+ progress = currentProgress / numBlocksUntilSynced;
97
+ }
98
99
if (Number.isNaN(progress)) {
100
progress = 1;
101
}
0 commit comments