Repository navigation
Partner Profile not Updating - #335
Conversation
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Greptile SummaryThis PR fixes partner profile updates by introducing a
Confidence Score: 4/5Not safe to merge until the secondaryTelephone regression and race condition are addressed. Two P1 findings: an unintentional schema regression making secondaryTelephone required (breaking step-2 form validation) and a non-atomic read-then-write that can silently lose concurrent updates. The core partial-update logic is otherwise correct. src/schema/partnerDetails.ts (optional field regression, broken refine), src/services/partnerDetailsService.ts (race condition, unused import) Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Description
Resolves ticket number: #324
Explain what your code changes:
Problem was the PartnerDetails type required all fields to be filled out when updating so I added a partial PartnerDetails type with optional fields. Also modularized
partnerDetails.ts.List the steps you took to test your code:
Tested on partner account
Checklist