Skip to content

Commit

Permalink
Merge pull request #44684 from dominictb/fix/44217
Browse files Browse the repository at this point in the history
fix: LHN of self-DM still shows actionable whisper after submitted
  • Loading branch information
aldo-expensify authored Jul 15, 2024
2 parents 4778fcc + 120fbd3 commit f9b148c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ function isActionableTrackExpense(reportAction: OnyxInputOrEntry<ReportAction>):
*
*/
function isResolvedActionTrackExpense(reportAction: OnyxEntry<ReportAction>): boolean {
const resolution = reportAction && 'resolution' in reportAction ? reportAction?.resolution : null;
const originalMessage = getOriginalMessage(reportAction);
const resolution = originalMessage && 'resolution' in originalMessage ? originalMessage?.resolution : null;
return isActionableTrackExpense(reportAction) && !!resolution;
}

Expand Down

0 comments on commit f9b148c

Please sign in to comment.