Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
klajdipaja committed Jan 30, 2025
1 parent 4dea69f commit b114fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/libs/ModifiedExpenseMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function getForReportAction(reportOrID: string | SearchReport | undefined, repor
'currency' in reportActionOriginalMessage;

const hasModifiedMerchant = isReportActionOriginalMessageAnObject && 'oldMerchant' in reportActionOriginalMessage && 'merchant' in reportActionOriginalMessage;
const optimisticDistanceUpdateMessage = Localize.translateLocal('iou.updatedTheDistanceOptimistically');
const optimisticDistanceUpdateMessage = translateLocal('iou.updatedTheDistanceOptimistically');
const hasOptimisticDistanceUpdate =
hasModifiedMerchant &&
CONST.REGEX.DISTANCE_MERCHANT.test(reportActionOriginalMessage?.oldMerchant ?? '') &&
Expand Down
6 changes: 2 additions & 4 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ import {
isAmountMissing,
isDistanceRequest as isDistanceRequestTransactionUtils,
isExpensifyCardTransaction,
isFetchingWaypointsFromServer,
isOnHold,
isPartialMerchant,
isPending,
Expand Down Expand Up @@ -3303,7 +3302,6 @@ function getUpdateMoneyRequestParams(
value: null,
});


// Revert the transaction's amount to the original value on failure.
// The IOU Report will be fully reverted in the failureData further below.
failureData.push({
Expand Down Expand Up @@ -3354,7 +3352,7 @@ function getUpdateMoneyRequestParams(
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThread?.reportID}`,
value: {
[updatedReportAction.reportActionID]: (hasPendingWaypoints ? null : {pendingAction: null}),
[updatedReportAction.reportActionID]: hasPendingWaypoints ? null : {pendingAction: null},
},
});
failureData.push({
Expand Down Expand Up @@ -3698,7 +3696,7 @@ function getUpdateTrackExpenseParams(
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThread?.reportID}`,
value: {
[updatedReportAction.reportActionID]: (hasPendingWaypoints ? null : {pendingAction: null}),
[updatedReportAction.reportActionID]: hasPendingWaypoints ? null : {pendingAction: null},
},
});
failureData.push({
Expand Down

0 comments on commit b114fd8

Please sign in to comment.