Skip to content

Commit

Permalink
Merge pull request #11 from DLC-link/fix/conf-check
Browse files Browse the repository at this point in the history
fix: confchecker
  • Loading branch information
scolear authored Nov 24, 2023
2 parents 253f044 + 095d31b commit 301f77d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/vault/components/vault-progress-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export function VaultProgressBar({
confirmedBlocks,
vaultState,
}: VaultProgressBarProps): React.JSX.Element | boolean {
const shouldBeIndeterminate = confirmedBlocks > 6;
const shouldBeIndeterminate =
confirmedBlocks > 6 || Number.isNaN(confirmedBlocks);

if (vaultState === VaultState.CLOSED && confirmedBlocks > 6) return false;
return (
Expand Down

0 comments on commit 301f77d

Please sign in to comment.