From 4387cfcd6cb5a9371a9a7c371c256d2002aa4c17 Mon Sep 17 00:00:00 2001 From: tekoiv Date: Tue, 21 Nov 2023 09:40:48 +0200 Subject: [PATCH] chore: temporarily map full status to crushed standing room only --- app/component/CapacityModal.js | 4 ++-- app/util/occupancyUtil.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/component/CapacityModal.js b/app/component/CapacityModal.js index c07e8d7dc2..66d7ba1ef7 100644 --- a/app/component/CapacityModal.js +++ b/app/component/CapacityModal.js @@ -124,7 +124,7 @@ const CapacityModal = ({ config }) => { />

-
+ {/*
{ defaultMessage="No seats or standing room available" />

-
+
*/} ); }; diff --git a/app/util/occupancyUtil.js b/app/util/occupancyUtil.js index 8fd7cb226a..f3ea22fc97 100644 --- a/app/util/occupancyUtil.js +++ b/app/util/occupancyUtil.js @@ -10,7 +10,7 @@ export function mapStatus(status) { case 'EMPTY': return 'MANY_SEATS_AVAILABLE'; case 'NOT_ACCEPTING_PASSENGERS': - return 'FULL'; + return 'CRUSHED_STANDING_ROOM_ONLY'; case 'MANY_SEATS_AVAILABLE': return 'MANY_SEATS_AVAILABLE'; case 'FEW_SEATS_AVAILABLE': @@ -20,7 +20,7 @@ export function mapStatus(status) { case 'CRUSHED_STANDING_ROOM_ONLY': return 'CRUSHED_STANDING_ROOM_ONLY'; case 'FULL': - return 'FULL'; + return 'CRUSHED_STANDING_ROOM_ONLY'; default: return 'NO_DATA_AVAILABLE'; }