Skip to content

Commit

Permalink
Merge pull request #23701 from Expensify/cmartins-fixReportTotal
Browse files Browse the repository at this point in the history
Fix report total update
  • Loading branch information
mountiny authored Jul 28, 2023
2 parents 5c6304f + f5eecab commit 28557e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ function arePropsEqual(oldProps, newProps) {
return false;
}

if (lodashGet(newProps, 'report.total') !== lodashGet(oldProps, 'report.total')) {
return false;
}

return _.isEqual(lodashGet(newProps.report, 'icons', []), lodashGet(oldProps.report, 'icons', []));
}

Expand Down

0 comments on commit 28557e1

Please sign in to comment.