From 8e7449ed06214e7778556ee5913b3efe80dc900a Mon Sep 17 00:00:00 2001 From: tugbadogan Date: Wed, 21 Jul 2021 13:19:35 +0100 Subject: [PATCH] Show IOU preview component persistently --- src/components/ReportActionItem/IOUAction.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/ReportActionItem/IOUAction.js b/src/components/ReportActionItem/IOUAction.js index aa321d70d9ff..ad8bd9cfb520 100644 --- a/src/components/ReportActionItem/IOUAction.js +++ b/src/components/ReportActionItem/IOUAction.js @@ -47,13 +47,14 @@ const IOUAction = ({ shouldShowViewDetailsLink={Boolean(action.originalMessage.IOUReportID)} onViewDetailsPressed={launchDetailsModal} /> - {isMostRecentIOUReportAction && Boolean(action.originalMessage.IOUReportID) && ( - + {((isMostRecentIOUReportAction && Boolean(action.originalMessage.IOUReportID)) + || (action.originalMessage.type === 'pay')) && ( + )} );