diff --git a/src/screens/explore/BlendedAbout/index.tsx b/src/screens/explore/BlendedAbout/index.tsx index df87ea584..e92f4d9c9 100644 --- a/src/screens/explore/BlendedAbout/index.tsx +++ b/src/screens/explore/BlendedAbout/index.tsx @@ -2,6 +2,7 @@ import { useState, useMemo } from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import Markdown from 'react-native-markdown-display'; import { StackScreenProps } from '@react-navigation/stack'; +import get from 'lodash/get'; import { RootStackParamList } from '../../../types/NavigationType'; import CompaniDate from '../../../core/helpers/dates/companiDates'; import { ascendingSort } from '../../../core/helpers/dates/utils'; @@ -63,10 +64,10 @@ const BlendedAbout = ({ route, navigation }: BlendedAboutProps) => { {`- ${item}`} )} } - {!!course.trainers.length && <> + {!!get(course, 'trainers', []).length && <> - {formatQuantity('Intervenant·e', course.trainers.length, '·s', false)} + {formatQuantity('Intervenant·e', course.trainers.length, 's', false)} {course.trainers .map((trainer: TrainerType, index: number) => )}