diff --git a/scripts/noUncheckedIndexedAccess_snapshot.txt b/scripts/noUncheckedIndexedAccess_snapshot.txt index 4d636579c52..22e60415cd5 100644 --- a/scripts/noUncheckedIndexedAccess_snapshot.txt +++ b/scripts/noUncheckedIndexedAccess_snapshot.txt @@ -30,7 +30,7 @@ ./src/features/deeplinks/helpers/getScreenFromDeeplink.ts:24 ./src/features/home/api/helpers/mapVenuesDataAndModules.ts:13 ./src/features/home/api/helpers/mapVenuesDataAndModules.ts:15 -./src/features/home/components/modules/OffersModule.tsx:70 +./src/features/home/components/modules/OffersModule.tsx:69 ./src/features/home/components/modules/video/OldVideoModuleDesktop.tsx:96 ./src/features/home/components/modules/video/OldVideoModuleMobile.tsx:70 ./src/features/home/components/modules/video/VideoModuleDesktop.tsx:86 diff --git a/src/features/home/components/modules/OffersModule.tsx b/src/features/home/components/modules/OffersModule.tsx index 66b890aee95..8fc503e4de5 100644 --- a/src/features/home/components/modules/OffersModule.tsx +++ b/src/features/home/components/modules/OffersModule.tsx @@ -17,7 +17,6 @@ import { useFeatureFlag } from 'libs/firebase/firestore/featureFlags/useFeatureF import { RemoteStoreFeatureFlags } from 'libs/firebase/firestore/types' import useFunctionOnce from 'libs/hooks/useFunctionOnce' import { useLocation } from 'libs/location' -import { formatDates } from 'libs/parsers/formatDates' import { Offer } from 'shared/offer/types' import { PassPlaylist } from 'ui/components/PassPlaylist' import { CustomListRenderItem, ItemDimensions, RenderFooterItem } from 'ui/components/Playlist' @@ -100,11 +99,9 @@ export const OffersModule = (props: OffersModuleProps) => { const renderItem: CustomListRenderItem = useCallback( ({ item, width, height }) => { - const timestampsInMillis = item.offer.dates?.map((timestampInSec) => timestampInSec * 1000) return (