fix(gro-817): guard appointments.past and map API pet field names #344

Closed
groombook-engineer[bot] wants to merge 1 commits from feature/gro-609-refund-payment-stats into dev

1 Commits

Author SHA1 Message Date
Test User d1ff61a909 fix(gro-817): guard appointments.past and map API pet field names
- Guard appointments.past with fallback: apptsData?.upcoming || [],
  apptsData?.past || [] to prevent TypeError when API returns unexpected shape
- Map API fields (weightKg, dateOfBirth, photoKey, groomingNotes) to
  interface fields (weight, birthDate, photoUrl, notes) expected by UI

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-19 02:11:16 +00:00