CreatePair is idempotent for the primary pair (stops duplicate BorrowerPairs)

Fixkamo-shared-library
Shipped
July 6, 2026 at 4:50 PM UTC
Author
Kamo
Commit
7a2bc64

createPair's sole caller is the wizard's 'ensure primary borrower', but it unconditionally inserted a new pair every call, so a concurrent autosave + explicit Save (both seeing an empty client cache) each POSTed and minted a duplicate BorrowerPair — a phantom co-applicant corrupting the URLA. If the app already has a pair, return the primary one instead.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing