Skip to content

Commit 978d061

Browse files
committed
fix ESLint.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent 6e5dfb9 commit 978d061

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/PopoverWithMeasuredContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {circularDeepEqual} from 'fast-equals';
1+
import {circularDeepEqual, deepEqual} from 'fast-equals';
22
import React, {useContext, useMemo, useState} from 'react';
33
import type {LayoutChangeEvent} from 'react-native';
44
import {View} from 'react-native';
@@ -90,8 +90,8 @@ function PopoverWithMeasuredContent({
9090

9191
if (!prevIsVisible && isVisible && isContentMeasured && !shouldSkipRemeasurement) {
9292
// Check if anything significant changed that would require re-measurement
93-
const hasAnchorPositionChanged = !isEqual(prevAnchorPosition, anchorPosition);
94-
const hasWindowSizeChanged = !isEqual(prevWindowDimensions, {windowWidth, windowHeight});
93+
const hasAnchorPositionChanged = !deepEqual(prevAnchorPosition, anchorPosition);
94+
const hasWindowSizeChanged = !deepEqual(prevWindowDimensions, {windowWidth, windowHeight});
9595
const hasStaticDimensions = popoverDimensions.width > 0 && popoverDimensions.height > 0;
9696

9797
// Only reset if:

src/pages/iou/request/step/IOURequestStepAttendees.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function IOURequestStepAttendees({
4040
policyCategories,
4141
}: IOURequestStepAttendeesProps) {
4242
const isEditing = action === CONST.IOU.ACTION.EDIT;
43+
// eslint-disable-next-line rulesdir/no-default-id-values
4344
const [transaction] = useOnyx(`${isEditing ? ONYXKEYS.COLLECTION.TRANSACTION : ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID || CONST.DEFAULT_NUMBER_ID}`, {canBeMissing: true});
4445
const [attendees, setAttendees] = useState<Attendee[]>(() => getAttendees(transaction));
4546
const previousAttendees = usePrevious(attendees);

0 commit comments

Comments
 (0)