Skip to content

Commit

Permalink
Unblock verifier if 0B was allocated somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Sep 24, 2024
1 parent 0a622ba commit 1d6c22f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/cards/AppInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ const AppInfoCard: React.FC<ComponentProps> = ({
return
}

if (allocationAmount === 0) {
setIsProgressBarVisible(true)
setProgress(100)
setAllocationProgressDesc(
`${bytesToiB(0, true)} / ${lastAllocationUnit}`,
)
return
}


if (allocationAmount < allowance) {
setIsProgressBarVisible(true)
setProgress(0)
Expand Down

0 comments on commit 1d6c22f

Please sign in to comment.