Skip to content

Commit

Permalink
update report preview to use getMoneyRequestTotal
Browse files Browse the repository at this point in the history
  • Loading branch information
mollfpr committed May 12, 2023
1 parent 4905557 commit 1698b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/ReportPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const defaultProps = {
};

const ReportPreview = (props) => {
const reportAmount = CurrencyUtils.convertToDisplayString(props.iouReport.total, props.iouReport.currency);
const reportAmount = CurrencyUtils.convertToDisplayString(ReportUtils.getMoneyRequestTotal(props.iouReport), props.iouReport.currency);
const managerEmail = props.iouReport.managerEmail || '';
const managerName = ReportUtils.getDisplayNameForParticipant(managerEmail, true);
const isCurrentUserManager = managerEmail === lodashGet(props.session, 'email', null);
Expand Down

0 comments on commit 1698b54

Please sign in to comment.