Skip to content

Commit

Permalink
Merge pull request #45580 from tienifr/fix/45457
Browse files Browse the repository at this point in the history
fix: app crashes after exporting report to CSV
  • Loading branch information
lakchote authored Jul 17, 2024
2 parents e3b508b + ead070d commit fc9b7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ function isActionableTrackExpense(reportAction: OnyxInputOrEntry<ReportAction>):
*/
function isResolvedActionTrackExpense(reportAction: OnyxEntry<ReportAction>): boolean {
const originalMessage = getOriginalMessage(reportAction);
const resolution = originalMessage && 'resolution' in originalMessage ? originalMessage?.resolution : null;
const resolution = originalMessage && typeof originalMessage === 'object' && 'resolution' in originalMessage ? originalMessage?.resolution : null;
return isActionableTrackExpense(reportAction) && !!resolution;
}

Expand Down

0 comments on commit fc9b7ac

Please sign in to comment.