Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sumo-slonik committed Jan 28, 2025
1 parent 44a9e2c commit a278e11
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/workspace/WorkspaceInitialPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac
const [isCurrencyModalOpen, setIsCurrencyModalOpen] = useState(false);
const hasPolicyCreationError = policy?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD && !isEmptyObject(policy.errors);
const [allFeedsCards] = useOnyx(`${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}`);
const [cardSettings] = useOnyx(`${ONYXKEYS.COLLECTION.PRIVATE_EXPENSIFY_CARD_SETTINGS}${workspaceAccountID}`);
const [cardsList] = useOnyx(`${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}${workspaceAccountID}_${CONST.EXPENSIFY_CARD.BANK}`);
const [connectionSyncProgress] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CONNECTION_SYNC_PROGRESS}${policy?.id}`);
const [currentUserLogin] = useOnyx(ONYXKEYS.SESSION, {selector: (session) => session?.email});
const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${route.params?.policyID}`);
Expand Down Expand Up @@ -361,8 +359,6 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac

return menuItems;
}, [
cardSettings?.errors,
cardsList?.cardList?.errorFields,
featureStates,
hasGeneralSettingsError,
hasMembersError,
Expand All @@ -374,6 +370,8 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac
shouldShowProtectedItems,
singleExecution,
waitForNavigate,
allFeedsCards,
workspaceAccountID,
]);

// We only update feature states if they aren't pending.
Expand Down

0 comments on commit a278e11

Please sign in to comment.