Skip to content

Commit

Permalink
Shows 99.99% as max value for syncing an account while in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
cgjohn committed Sep 30, 2024
1 parent e3282f0 commit d7fefc2
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ export function AccountSyncingProgress({
fontSize="sm"
textAlign="center"
p={1}
>{`${
progress === null
? formatMessage(messages.syncingNoProgressMessage)
: formatMessage(messages.syncingProgressMessage, {
progress: parseFloat((progress * 100).toFixed(2)),
})
} | ${formatMessage(messages.syncingBalanceMessage)}`}</Box>
>
{`${
progress === null
? formatMessage(messages.syncingNoProgressMessage)
: formatMessage(messages.syncingProgressMessage, {
progress: Math.min(
parseFloat((progress * 100).toFixed(2)),
99.99,
),
})
} | ${formatMessage(messages.syncingBalanceMessage)}`}
</Box>
);
}

0 comments on commit d7fefc2

Please sign in to comment.