Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
  • Loading branch information
tsa321 committed Sep 20, 2024
1 parent 6885f11 commit 81c3fbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ function isActionOfType<T extends ReportActionName[]>(

function getOriginalMessage<T extends ReportActionName>(reportAction: OnyxInputOrEntry<ReportAction<T>>): OriginalMessage<T> | undefined {
if (!Array.isArray(reportAction?.message)) {
// eslint-disable-next-line deprecation/deprecation
// eslint-disable-next-line
return reportAction?.message ?? reportAction?.originalMessage;
}

// eslint-disable-next-line deprecation/deprecation
// eslint-disable-next-line
return reportAction.originalMessage;
}

Expand Down Expand Up @@ -596,7 +596,7 @@ function isReportActionDeprecated(reportAction: OnyxEntry<ReportAction>, key: st

// HACK ALERT: We're temporarily filtering out any reportActions keyed by sequenceNumber
// to prevent bugs during the migration from sequenceNumber -> reportActionID
// eslint-disable-next-line deprecation/deprecation
// eslint-disable-next-line
if (String(reportAction.sequenceNumber) === key) {
Log.info('Front-end filtered out reportAction keyed by sequenceNumber!', false, reportAction);
return true;
Expand Down Expand Up @@ -1771,7 +1771,7 @@ export {
getNumberOfMoneyRequests,
getOneTransactionThreadReportID,
getOriginalMessage,
// eslint-disable-next-line deprecation/deprecation
// eslint-disable-next-line
getParentReportAction,
getRemovedFromApprovalChainMessage,
getReportAction,
Expand Down

0 comments on commit 81c3fbc

Please sign in to comment.