Skip to content

Commit

Permalink
Merge pull request #4162 from tugbadogan/tugbadogan-iou-preview-fix
Browse files Browse the repository at this point in the history
Show IOU preview component persistently
  • Loading branch information
Julesssss authored Jul 22, 2021
2 parents c9c2ee9 + 8e7449e commit a111b83
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 a111b83

Please sign in to comment.