mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
The update action was calling set_current_balance (which triggers sync_later internally) on every form submission, even when the balance hadn't changed. This caused the account to enter a syncing state, replacing the visible balance with a pulsing skeleton placeholder until the sync completed. Now we compare the submitted balance against the current value and only call set_current_balance when it actually differs. Also removes a redundant sync_later call that duplicated the one already inside set_current_balance. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>