diff --git a/portal/setup-wizard.html b/portal/setup-wizard.html index db07e72..ac5a756 100644 --- a/portal/setup-wizard.html +++ b/portal/setup-wizard.html @@ -2152,7 +2152,13 @@ console.log('Parsed address:', { addressLine1, city, state, zip }); // Parse hours into a 7-day schedule - const hoursSchedule = parseHoursString(biz.hours || ''); + // Claude may return hours as an object or string — normalize to string + let hoursRaw = biz.hours || ''; + if (typeof hoursRaw === 'object') { + // Try to flatten object to readable string (e.g. { monday: "9am-5pm", ... }) + try { hoursRaw = Object.entries(hoursRaw).map(([k, v]) => `${k} ${v}`).join(', '); } catch (e) { hoursRaw = ''; } + } + const hoursSchedule = parseHoursString(String(hoursRaw)); addMessage('ai', `

I found your restaurant information: