Skip to content

Commit 1dda0ae

Browse files
authored
Merge pull request #81971 from situchan/revert-81196-jsenyitko-hide-expense-rules
[No QA] Show personal expense rules again
2 parents 574d215 + 66f256d commit 1dda0ae

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

src/pages/settings/InitialSettingsPage.tsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import type {WithCurrentUserPersonalDetailsProps} from '@components/withCurrentU
2424
import withCurrentUserPersonalDetails from '@components/withCurrentUserPersonalDetails';
2525
import useCardFeedErrors from '@hooks/useCardFeedErrors';
2626
import useConfirmModal from '@hooks/useConfirmModal';
27-
import useEnvironment from '@hooks/useEnvironment';
2827
import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
2928
import useLocalize from '@hooks/useLocalize';
3029
import useNetwork from '@hooks/useNetwork';
@@ -133,8 +132,6 @@ function InitialSettingsPage({currentUserPersonalDetails}: InitialSettingsPagePr
133132
const theme = useTheme();
134133
const styles = useThemeStyles();
135134
const {isExecuting, singleExecution} = useSingleExecution();
136-
const {isProduction} = useEnvironment();
137-
138135
const popoverAnchor = useRef(null);
139136
const {translate} = useLocalize();
140137
const focusedRouteName = useNavigationState((state) => findFocusedRoute(state)?.name);
@@ -249,17 +246,13 @@ function InitialSettingsPage({currentUserPersonalDetails}: InitialSettingsPagePr
249246
action: () => Navigation.navigate(ROUTES.SETTINGS_WALLET),
250247
badgeText: hasActivatedWallet ? convertToDisplayString(userWallet?.currentBalance) : undefined,
251248
},
252-
...(!isProduction
253-
? [
254-
{
255-
translationKey: 'expenseRulesPage.title' as const,
256-
icon: icons.Bolt,
257-
screenName: SCREENS.SETTINGS.RULES.ROOT,
258-
sentryLabel: CONST.SENTRY_LABEL.ACCOUNT.RULES,
259-
action: () => Navigation.navigate(ROUTES.SETTINGS_RULES),
260-
},
261-
]
262-
: []),
249+
{
250+
translationKey: 'expenseRulesPage.title',
251+
icon: icons.Bolt,
252+
screenName: SCREENS.SETTINGS.RULES.ROOT,
253+
sentryLabel: CONST.SENTRY_LABEL.ACCOUNT.RULES,
254+
action: () => Navigation.navigate(ROUTES.SETTINGS_RULES),
255+
},
263256
{
264257
translationKey: 'common.preferences',
265258
icon: icons.Gear,

0 commit comments

Comments
 (0)