From e721452a0f59a6755c57207ae1713ff867d55162 Mon Sep 17 00:00:00 2001 From: Justin Tan Date: Wed, 8 Apr 2026 11:49:24 -0600 Subject: [PATCH] Error msg for passenger fit rating --- .../drivercomponents/TripSurveyModal.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/app/_components/drivercomponents/TripSurveyModal.tsx b/src/app/_components/drivercomponents/TripSurveyModal.tsx index 9aeac7f..470e720 100644 --- a/src/app/_components/drivercomponents/TripSurveyModal.tsx +++ b/src/app/_components/drivercomponents/TripSurveyModal.tsx @@ -185,7 +185,16 @@ export const TripSurveyModal = ({ form }: SurveyFormProps) => { disabled={form.values.tripCompletionStatus === BookingStatus.CANCELLED} > Rate the passenger’s fitness for transport -
+
{
Very Poor + {form.errors.passengerFitRating && ( + + {form.errors.passengerFitRating} + + )} Excellent Additional Notes