Skip to content

Commit

Permalink
Show IOU preview component persistently
Browse files Browse the repository at this point in the history
  • Loading branch information
tugbadogan committed Jul 21, 2021
1 parent 683bcf4 commit 8e7449e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/components/ReportActionItem/IOUAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ const IOUAction = ({
shouldShowViewDetailsLink={Boolean(action.originalMessage.IOUReportID)}
onViewDetailsPressed={launchDetailsModal}
/>
{isMostRecentIOUReportAction && Boolean(action.originalMessage.IOUReportID) && (
<IOUPreview
iouReportID={action.originalMessage.IOUReportID}
chatReportID={chatReportID}
onPayButtonPressed={launchDetailsModal}
onPreviewPressed={launchDetailsModal}
/>
{((isMostRecentIOUReportAction && Boolean(action.originalMessage.IOUReportID))
|| (action.originalMessage.type === 'pay')) && (
<IOUPreview
iouReportID={action.originalMessage.IOUReportID}
chatReportID={chatReportID}
onPayButtonPressed={launchDetailsModal}
onPreviewPressed={launchDetailsModal}
/>
)}
</>
);
Expand Down

0 comments on commit 8e7449e

Please sign in to comment.