diff --git a/frontend/src/components/AdminViewProfileComponent/VehicleList.tsx b/frontend/src/components/AdminViewProfileComponent/VehicleList.tsx index 448882c..4be56e2 100644 --- a/frontend/src/components/AdminViewProfileComponent/VehicleList.tsx +++ b/frontend/src/components/AdminViewProfileComponent/VehicleList.tsx @@ -7,7 +7,7 @@ const VehicleList = ({ driver }: { driver: DriverWithVandC }) => { className="flex flex-col items-center justify-center w-full" data-testid="vehichlelist" > -
+
{ driver.cars?.map((car) => ( diff --git a/frontend/src/components/AdminViewProfileComponent/ViolationList.tsx b/frontend/src/components/AdminViewProfileComponent/ViolationList.tsx index b3e0911..938ac9d 100644 --- a/frontend/src/components/AdminViewProfileComponent/ViolationList.tsx +++ b/frontend/src/components/AdminViewProfileComponent/ViolationList.tsx @@ -4,7 +4,7 @@ import ViolationCard from "../ViolationCard"; const ViolationList = ({ violations }: { violations: Violation[] }) => { return (
-
+
{violations.map((violation) => (