Skip to content

Commit 222682e

Browse files
committed
removed unused eslint comments and cleared wrong comment
1 parent 4ab5e8e commit 222682e

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/libs/actions/IOU/UpdateMoneyRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ function getUpdateMoneyRequestParams(params: GetUpdateMoneyRequestParamsType): U
979979
>
980980
> = [];
981981

982-
// Step 2: Get all the collections being updated
982+
// Step 1: Get the transaction being updated
983983
const transaction = getAllTransactions()?.[`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`];
984984

985985
// The manual-distance submit path always sends waypoints to keep the BE in sync, even when the user
@@ -989,7 +989,7 @@ function getUpdateMoneyRequestParams(params: GetUpdateMoneyRequestParamsType): U
989989
const hasWaypointAddressesChanged = 'waypoints' in transactionChanges && haveWaypointAddressesChanged(transaction?.comment?.waypoints, transactionChanges.waypoints);
990990
const shouldSuppressWaypointsAsPending = 'waypoints' in transactionChanges && !hasWaypointAddressesChanged;
991991

992-
// Step 1: Set any "pending fields" (ones updated while the user was offline) to have error messages in the failureData
992+
// Step 2: Set any "pending fields" (ones updated while the user was offline) to have error messages in the failureData
993993
const pendingFields: OnyxTypes.Transaction['pendingFields'] = Object.fromEntries(
994994
Object.keys(transactionChanges)
995995
.filter((key) => !(shouldSuppressWaypointsAsPending && key === 'waypoints'))

tests/ui/IOURequestStepDistanceTest.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ jest.mock('@libs/Navigation/OnyxTabNavigator', () => {
9999
};
100100
const TabScreenWithFocusTrapWrapper = ({children}: {children: React.ReactNode}) => React2.createElement(React2.Fragment, null, children);
101101
return {
102-
// eslint-disable-next-line @typescript-eslint/naming-convention
103102
__esModule: true,
104103
default: OnyxTabNavigator,
105104
TopTab,

tests/ui/components/IOURequestStepDistanceTest.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jest.mock('@components/ProductTrainingContext', () => ({
6161
jest.mock('@libs/Navigation/OnyxTabNavigator', () => {
6262
const ReactMock = require('react');
6363
return {
64-
// eslint-disable-next-line @typescript-eslint/naming-convention
6564
__esModule: true,
6665
default: ({children}: {children: React.ReactNode}) => ReactMock.createElement(ReactMock.Fragment, null, children),
6766
TopTab: {

0 commit comments

Comments
 (0)