Skip to content

Commit

Permalink
refactor: use isEmptyObject
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Sep 23, 2024
1 parent 4e8e84e commit 8953ec6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {isEmpty} from 'lodash';
import React, {useRef} from 'react';
import type {ComponentType, ForwardedRef} from 'react';
import {View} from 'react-native';
Expand Down Expand Up @@ -68,7 +67,7 @@ function NetSuiteTokenInputPage({policy}: WithPolicyConnectionsProps) {
connectionName={CONST.POLICY.CONNECTIONS.NAME.NETSUITE}
onBackButtonPress={handleBackButtonPress}
shouldIncludeSafeAreaPaddingBottom
shouldLoadForEmptyConnection={isEmpty(policy?.connections?.[CONST.POLICY.CONNECTIONS.NAME.NETSUITE])}
shouldLoadForEmptyConnection={isEmptyObject(policy?.connections?.[CONST.POLICY.CONNECTIONS.NAME.NETSUITE])}
shouldBeBlocked={shouldPageBeBlocked}
>
<View style={[styles.ph5, styles.mb3, styles.mt3, {height: CONST.BANK_ACCOUNT.STEPS_HEADER_HEIGHT}]}>
Expand Down

0 comments on commit 8953ec6

Please sign in to comment.