From 087f9094b7cc66ca62202e1562a4c15a0f4bab26 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 30 Oct 2023 13:39:05 +0700 Subject: [PATCH] fix lint --- .../MoneyRequestParticipantsPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js b/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js index 05fdcab710e9..5f15d18e8227 100644 --- a/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js +++ b/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import React, {useCallback, useEffect, useRef, useState} from 'react'; import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; -import _ from 'underscore'; +import lodashSize from 'lodash/size'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import ScreenWrapper from '@components/ScreenWrapper'; import compose from '@libs/compose'; @@ -64,7 +64,7 @@ function MoneyRequestParticipantsPage({iou, selectedTab, route, transaction}) { const [headerTitle, setHeaderTitle] = useState(); const waypoints = lodashGet(transaction, 'comment.waypoints', {}); const validatedWaypoints = TransactionUtils.getValidWaypoints(waypoints); - const isInvalidWaypoint = _.size(validatedWaypoints) < 2; + const isInvalidWaypoint = lodashSize(validatedWaypoints) < 2; useEffect(() => { if (isDistanceRequest) { setHeaderTitle(translate('common.distance'));