Skip to content

Commit

Permalink
Update src/components/SelectionList/Search/ReportListItem.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Rosiclair <[email protected]>
  • Loading branch information
nkdengineer and arosiclair authored Jun 25, 2024
1 parent 2b032fc commit fe3bb0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SelectionList/Search/ReportListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function TotalCell({showTooltip, isLargeScreenWidth, reportItem}: ReportCellProp

let total = reportItem?.total ?? 0;

// Only invert non-zero values otherwise we'll end up with -0.00
if (total) {
total *= reportItem?.type === CONST.REPORT.TYPE.EXPENSE ? -1 : 1;
}
Expand Down

0 comments on commit fe3bb0b

Please sign in to comment.