diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index f9ce70e851bc..6835bcf3f5fc 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -224,7 +224,7 @@ type MenuItemBaseProps = { onSecondaryInteraction?: (event: GestureResponderEvent | MouseEvent) => void; /** Array of objects that map display names to their corresponding tooltip */ - titleWithTooltips?: DisplayNameWithTooltip[]; + titleWithTooltips?: DisplayNameWithTooltip[] | undefined; /** Icon should be displayed in its own color */ displayInDefaultIconColor?: boolean; diff --git a/src/pages/tasks/NewTaskPage.tsx b/src/pages/tasks/NewTaskPage.tsx index 64c46e75c91d..44cb485c0b06 100644 --- a/src/pages/tasks/NewTaskPage.tsx +++ b/src/pages/tasks/NewTaskPage.tsx @@ -180,7 +180,7 @@ function NewTaskPage({task, reports, personalDetails}: NewTaskPageProps) { onPress={() => Navigation.navigate(ROUTES.NEW_TASK_SHARE_DESTINATION)} interactive={!task?.parentReportID} shouldShowRightIcon={!task?.parentReportID} - titleWithTooltips={shareDestination?.shouldUseFullTitleToDisplay ? shareDestination?.displayNamesWithTooltips : []} + titleWithTooltips={shareDestination?.shouldUseFullTitleToDisplay ? undefined : shareDestination?.displayNamesWithTooltips} />