Skip to content

Commit

Permalink
fix: app crashes after exporting report to CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jul 17, 2024
1 parent 52b8fdd commit ead070d
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 ead070d

Please sign in to comment.