lilith-platform.live/codebase/@features/provider-website
Natalie 29592405d4 fix(provider-website): default contact.paymentMethods to [] (site-wide Footer crash)
The edge-served provider-config (black_api down) returns a populated contact
object WITHOUT paymentMethods. validateProviderData only substituted a default
contact when the whole object was falsy, so a present-but-incomplete contact
passed through with paymentMethods undefined. The Footer (rendered site-wide)
and ContactCard both call contact.paymentMethods.map() unguarded → TypeError
'Cannot read properties of undefined (reading map)' → every page crashed.

Add validateContact() to normalize paymentMethods to an array while preserving
all other contact fields (mirrors validateAboutSection). Regression test added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 22:07:05 -04:00
..
data-api feat(quinn-admin): move default theme selector from hardcoded quinn.www constant into quinn-admin feature (public data) 2026-06-23 04:34:35 -04:00
frontend-public fix(provider-website): default contact.paymentMethods to [] (site-wide Footer crash) 2026-06-28 22:07:05 -04:00
shared/src feat(quinn-admin): move default theme selector from hardcoded quinn.www constant into quinn-admin feature (public data) 2026-06-23 04:34:35 -04:00