Skip to content

fix: surface teamSplitsValid warning in IssueDetailPage - #136

Open
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/issue-85-surface-team-splits-valid
Open

rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/issue-85-surface-team-splits-valid

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #85.

adaptBounty was computing teamSplitsValid using validateTeamSplits but the result was never consumed by any UI. IssueDetailPage rendered the team payout split section without checking if the splits actually summed to 100%, allowing silently invalid payout breakdowns to be displayed with full visual confidence.

Added teamSplitsValid to the Bounty type interface and updated IssueDetailPage to render a visible warning banner using the message already computed by validateTeamSplits when the splits are invalid. Also added an explicit length check to prevent rendering an empty section for an empty splits array.

Fixes MergeFi#85.

adaptBounty was computing teamSplitsValid using validateTeamSplits but
the result was never consumed by any UI. IssueDetailPage rendered the
team payout split section without checking if the splits actually
summed to 100%, allowing silently invalid payout breakdowns to be
displayed with full visual confidence.

Added teamSplitsValid to the Bounty type interface and updated
IssueDetailPage to render a visible warning banner using the message
already computed by validateTeamSplits when the splits are invalid.
Also added an explicit length check to prevent rendering an empty
section for an empty splits array.
@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.

This branch has not been deployed

No deployments
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.

Surface adaptBounty's teamSplitsValid result in IssueDetailPage instead of computing and discarding it

1 participant