diff --git a/src/components/MoneyReportHeader.js b/src/components/MoneyReportHeader.js index bf8bc7719316..09a5130adc0b 100644 --- a/src/components/MoneyReportHeader.js +++ b/src/components/MoneyReportHeader.js @@ -89,7 +89,7 @@ function MoneyReportHeader({session, personalDetails, policy, chatReport, nextSt return isManager && !isDraft && !isApproved && !isSettled; }, [policyType, isManager, isDraft, isApproved, isSettled]); const shouldShowSubmitButton = isDraft && reimbursableTotal !== 0; - const shouldShowNextSteps = isDraft && nextStep && (!_.isEmpty(nextStep.message) || !_.isEmpty(nextStep.expenseMessage)); + const shouldShowNextSteps = isDraft && nextStep && !_.isEmpty(nextStep.message); const shouldShowAnyButton = shouldShowSettlementButton || shouldShowApproveButton || shouldShowSubmitButton || shouldShowNextSteps; const bankAccountRoute = ReportUtils.getBankAccountRoute(chatReport); const formattedAmount = CurrencyUtils.convertToDisplayString(reimbursableTotal, moneyRequestReport.currency); diff --git a/src/components/MoneyReportHeaderStatusBar.js b/src/components/MoneyReportHeaderStatusBar.js index 362a2dc22b9f..3f2c06be78cf 100644 --- a/src/components/MoneyReportHeaderStatusBar.js +++ b/src/components/MoneyReportHeaderStatusBar.js @@ -1,6 +1,5 @@ import React, {useMemo} from 'react'; import {Text, View} from 'react-native'; -import _ from 'underscore'; import useLocalize from '@hooks/useLocalize'; import * as NextStepUtils from '@libs/NextStepUtils'; import nextStepPropTypes from '@pages/nextStepPropTypes'; @@ -21,9 +20,9 @@ function MoneyReportHeaderStatusBar({nextStep}) { const {translate} = useLocalize(); const messageContent = useMemo(() => { - const messageArray = _.isEmpty(nextStep.expenseMessage) ? nextStep.message : nextStep.expenseMessage; + const messageArray = nextStep.message; return NextStepUtils.parseMessage(messageArray); - }, [nextStep.expenseMessage, nextStep.message]); + }, [nextStep.message]); return (