Skip to content

Commit 7bcd200

Browse files
committed
Fix src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx
1 parent e1dbf45 commit 7bcd200

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {useFocusEffect} from '@react-navigation/native';
22
import React, {useCallback, useMemo} from 'react';
3-
import type {ValueOf} from 'type-fest';
43
import HeaderWithBackButton from '@components/HeaderWithBackButton';
54
import ScreenWrapper from '@components/ScreenWrapper';
65
import ScrollView from '@components/ScrollView';
@@ -45,13 +44,11 @@ function WorkspaceUpgradePage({route}: WorkspaceUpgradePageProps) {
4544

4645
const featureNameAlias = route.params?.featureName && getFeatureNameAlias(route.params.featureName);
4746

48-
const feature: ValueOf<Omit<typeof CONST.UPGRADE_FEATURE_INTRO_MAPPING, typeof CONST.UPGRADE_FEATURE_INTRO_MAPPING.policyPreventMemberChangingTitle.id>> = useMemo(
47+
const feature = useMemo(
4948
() =>
5049
Object.values(CONST.UPGRADE_FEATURE_INTRO_MAPPING)
5150
.filter((value) => value.id !== CONST.UPGRADE_FEATURE_INTRO_MAPPING.policyPreventMemberChangingTitle.id)
52-
.find((f) => f.alias === featureNameAlias) as ValueOf<
53-
Omit<typeof CONST.UPGRADE_FEATURE_INTRO_MAPPING, typeof CONST.UPGRADE_FEATURE_INTRO_MAPPING.policyPreventMemberChangingTitle.id>
54-
>,
51+
.find((f) => f.alias === featureNameAlias),
5552
[featureNameAlias],
5653
);
5754
const {translate} = useLocalize();

0 commit comments

Comments
 (0)