Skip to content

Conversation

@richardsokol
Copy link

This PR closes #402 where settled balances would break after minor edits

Changes:

  • Modified setParticipants() to detect when participants already have amounts from the database and skip recalculation
  • Added tests to verify different penny distributions are preserved across edits

Example:
Before: Split $0.04 three ways → edit description → pennies reshuffled
Now: Split $0.04 three ways → edit description → pennies stay the same

(Btw, Sorry for my previous incorrectly written PR with this issue)

@krokosik
Copy link
Collaborator

krokosik commented Nov 4, 2025

After an initial glance, I have 3 major comments. Please take the time to set up the necessary tooling: prettier+oxc as clearly the formatting is broken. Second of all, the leftover pennies can also occur with percentage and share types which is not covered by this PR. Finally, I created a PR template for a reason, please use 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.

Left over pennies reshuffling

2 participants