diff --git a/src/CONST.ts b/src/CONST.ts index 4820bbb62b52..bbc92ddadbde 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1840,6 +1840,7 @@ const CONST = { DATE_OF_BIRTH: 1, ADDRESS: 2, PHONE_NUMBER: 3, + CONFIRM: 4, }, INDEX_LIST: ['1', '2', '3', '4'], }, diff --git a/src/ROUTES.ts b/src/ROUTES.ts index f70be8ff29e4..9c429dd3e909 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -1275,10 +1275,7 @@ const ROUTES = { route: 'restricted-action/workspace/:policyID', getRoute: (policyID: string) => `restricted-action/workspace/${policyID}` as const, }, - MISSING_PERSONAL_DETAILS: { - route: 'missing-personal-details/workspace/:policyID', - getRoute: (policyID: string) => `missing-personal-details/workspace/${policyID}` as const, - }, + MISSING_PERSONAL_DETAILS: 'missing-personal-details', POLICY_ACCOUNTING_NETSUITE_SUBSIDIARY_SELECTOR: { route: 'settings/workspaces/:policyID/accounting/netsuite/subsidiary-selector', getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/netsuite/subsidiary-selector` as const, diff --git a/src/components/ReportActionItem/IssueCardMessage.tsx b/src/components/ReportActionItem/IssueCardMessage.tsx index d12a20c4598d..c1f4e534a3c1 100644 --- a/src/components/ReportActionItem/IssueCardMessage.tsx +++ b/src/components/ReportActionItem/IssueCardMessage.tsx @@ -16,17 +16,15 @@ import {isEmptyObject} from '@src/types/utils/EmptyObject'; type IssueCardMessageProps = { action: OnyxEntry; - - policyID: string | undefined; }; -function IssueCardMessage({action, policyID}: IssueCardMessageProps) { +function IssueCardMessage({action}: IssueCardMessageProps) { const {translate} = useLocalize(); const styles = useThemeStyles(); const [privatePersonalDetails] = useOnyx(ONYXKEYS.PRIVATE_PERSONAL_DETAILS); const [session] = useOnyx(ONYXKEYS.SESSION); - const assigneeAccountID = (action?.originalMessage as IssueNewCardOriginalMessage)?.assigneeAccountID; + const assigneeAccountID = (ReportActionsUtils.getOriginalMessage(action) as IssueNewCardOriginalMessage)?.assigneeAccountID; const missingDetails = !privatePersonalDetails?.legalFirstName || @@ -45,12 +43,7 @@ function IssueCardMessage({action, policyID}: IssueCardMessageProps) { ${ReportActionsUtils.getCardIssuedMessage(action, true)}`} /> {shouldShowAddMissingDetailsButton && (