diff --git a/assets/ts/schedule/components/schedule-finder/ScheduleModalContent.tsx b/assets/ts/schedule/components/schedule-finder/ScheduleModalContent.tsx index 879b1c8b8b..5b48209650 100644 --- a/assets/ts/schedule/components/schedule-finder/ScheduleModalContent.tsx +++ b/assets/ts/schedule/components/schedule-finder/ScheduleModalContent.tsx @@ -46,6 +46,13 @@ const ScheduleModalContent = ({ }: Props): ReactElement | null => { const { id: routeId } = route; + const isBetaTestCandidate = (): boolean => { + const isIPhone = /iPhone/.test(navigator.userAgent); + const isRandom = Math.random() <= 0.3; + + return isIPhone && isRandom; + }; + const serviceToday = services.some(service => isInCurrentService(service, stringToDateObject(today)) ); @@ -77,7 +84,28 @@ const ScheduleModalContent = ({ stopsByDirection={stops} /> - + {!isBetaTestCandidate() ? null : ( +
+ + Sign up to test the new MBTA app → + +
+ )} {!isSubwayRoute(route) ? null : (