Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
techievivek committed Oct 21, 2023
1 parent ba0660e commit d182a4f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,15 @@ function ReportActionItem(props) {
);
}

// For the `pay` IOU action on non-send money flow, we don't want to render anything if `isWaitingOnBankAccount` is true
// For the `pay` IOU action on non-send money flow, we don't want to render anything if `isWaitingOnBankAccount` is true
// Otherwise, we will see two system messages informing the payee needs to add a bank account or wallet
if (props.action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && lodashGet(props.report, 'isWaitingOnBankAccount', false) && originalMessage && originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY && !isSendingMoney) {
if (
props.action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU &&
lodashGet(props.report, 'isWaitingOnBankAccount', false) &&
originalMessage &&
originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY &&
!isSendingMoney
) {
return null;
}

Expand Down

0 comments on commit d182a4f

Please sign in to comment.