From c6823feae9bd8d735532d74099b02620c3e4b483 Mon Sep 17 00:00:00 2001 From: Cora Grant Date: Mon, 29 Jul 2024 14:55:30 -0400 Subject: [PATCH] refactor: remove duplicate impl of RoutePill size This DUP-specific logic was a duplicate of logic already incorporated into `RoutePill`, with an added bug that it would not correctly display a route numbered `200` at small size (if the MBTA had such a route). --- assets/src/components/v2/dup/departures/departure_row.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/assets/src/components/v2/dup/departures/departure_row.tsx b/assets/src/components/v2/dup/departures/departure_row.tsx index 6ecbbc1c7..ca2114d0c 100644 --- a/assets/src/components/v2/dup/departures/departure_row.tsx +++ b/assets/src/components/v2/dup/departures/departure_row.tsx @@ -10,16 +10,10 @@ const DepartureRow = ({ times_with_crowding: timesWithCrowding, currentPage, }) => { - const routeText = Number(route.text); return (
- 200 ? "small" : "large", - }} - /> +