diff --git a/src/components/EmptySelectionListContent.tsx b/src/components/EmptySelectionListContent.tsx index 3e832c636771..2c45dcb5c825 100644 --- a/src/components/EmptySelectionListContent.tsx +++ b/src/components/EmptySelectionListContent.tsx @@ -15,7 +15,7 @@ type EmptySelectionListContentProps = { contentType: string; }; -const CONTENT_TYPES = [CONST.IOU.TYPE.CREATE]; +const CONTENT_TYPES = [CONST.IOU.TYPE.CREATE, CONST.IOU.TYPE.SUBMIT]; type ContentType = TupleToUnion; function isContentType(contentType: unknown): contentType is ContentType { @@ -29,8 +29,8 @@ function EmptySelectionListContent({contentType}: EmptySelectionListContentProps if (!isContentType(contentType)) { return null; } - - const EmptySubtitle = {translate(`emptyList.${contentType}.subtitleText`)}; + const translationKeyContentType = CONST.IOU.TYPE.CREATE; + const EmptySubtitle = {translate(`emptyList.${translationKeyContentType}.subtitleText`)}; return ( @@ -39,7 +39,7 @@ function EmptySelectionListContent({contentType}: EmptySelectionListContentProps icon={Illustrations.ToddWithPhones} iconWidth={variables.emptySelectionListIconWidth} iconHeight={variables.emptySelectionListIconHeight} - title={translate(`emptyList.${contentType}.title`)} + title={translate(`emptyList.${translationKeyContentType}.title`)} shouldShowLink={false} CustomSubtitle={EmptySubtitle} containerStyle={[styles.mb8, styles.ph15]}