diff --git a/frontend/src/pages/l1/L1Dashboard.tsx b/frontend/src/pages/l1/L1Dashboard.tsx index 4f921c4a..cefa3613 100644 --- a/frontend/src/pages/l1/L1Dashboard.tsx +++ b/frontend/src/pages/l1/L1Dashboard.tsx @@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom' import { PageMeta } from '@/components/common/PageMeta' import { useAuthStore } from '@/store/authStore' import { l1Api } from '@/api/l1' +import { toast } from '@/lib/toast' import { EmptyStateCard } from '@/components/l1/EmptyStateCard' import { ResumeInProgress } from '@/components/l1/ResumeInProgress' import type { QueueRow } from '@/types/l1' @@ -46,6 +47,11 @@ export default function L1Dashboard() { customer_contact: customerContact.trim() || undefined, }) navigate(`/l1/walk/${response.session_id}`) + } catch (err) { + const detail = (err as any)?.response?.data?.detail + const msg = + typeof detail === 'string' ? detail : 'Failed to start walk. Try again.' + toast.error(msg) } finally { setSubmitting(false) }