Skip to content

fix: guard milestone budget division and clamp percentage display (#75) - #162

Open
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/75-milestone-budget-clamp
Open

fix: guard milestone budget division and clamp percentage display (#75)#162
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/75-milestone-budget-clamp

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #75.

  • Guard against division by zero when milestone budget is 0 (render 'Not yet funded' instead of NaN/Infinity).
  • Clamp distributed/budget ratio to 1.0 so progress bar and percentage text agree when over-funded.
  • TypeScript compiles cleanly with npx tsc --noEmit.

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MilestonesPage divides by zero on an unfunded budget and never clamps an over-100% distributed percentage

1 participant