Skip to content

Commit eae70cf

Browse files
authored
Merge pull request Expensify#63070 from nkdengineer/fix/61998
fix: actionable whisper is still present after adding track expense to workspace
2 parents 75c5e76 + 5686a9c commit eae70cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libs/ReportActionsUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ function isDeletedAction(reportAction: OnyxInputOrEntry<ReportAction | Optimisti
156156
if (!Array.isArray(message)) {
157157
return message?.html === '' || !!message?.deleted;
158158
}
159+
const originalMessage = getOriginalMessage(reportAction);
159160

160161
// A legacy deleted comment has either an empty array or an object with html field with empty string as value
161162
const isLegacyDeletedComment = message.length === 0 || message.at(0)?.html === '';
162163

163-
return isLegacyDeletedComment || !!message.at(0)?.deleted;
164+
return isLegacyDeletedComment || !!message.at(0)?.deleted || (!!originalMessage && 'deleted' in originalMessage && !!originalMessage?.deleted);
164165
}
165166

166167
/**

0 commit comments

Comments
 (0)