From 9794781a63810f1666da08defb4106c5b8e0df4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Thu, 12 Feb 2026 11:51:44 +0100 Subject: [PATCH] Revert "Enable merchant rules" --- src/pages/workspace/rules/MerchantRulesSection.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/workspace/rules/MerchantRulesSection.tsx b/src/pages/workspace/rules/MerchantRulesSection.tsx index 1a67c20d6f918..1d3d2d79defcc 100644 --- a/src/pages/workspace/rules/MerchantRulesSection.tsx +++ b/src/pages/workspace/rules/MerchantRulesSection.tsx @@ -6,6 +6,7 @@ import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription'; import OfflineWithFeedback from '@components/OfflineWithFeedback'; import Section from '@components/Section'; import Text from '@components/Text'; +import useEnvironment from '@hooks/useEnvironment'; import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset'; import useLocalize from '@hooks/useLocalize'; import usePolicy from '@hooks/usePolicy'; @@ -70,6 +71,7 @@ function MerchantRulesSection({policyID}: MerchantRulesSectionProps) { const theme = useTheme(); const policy = usePolicy(policyID); const expensifyIcons = useMemoizedLazyExpensifyIcons(['Plus']); + const {isProduction} = useEnvironment(); // Hoist iterator-independent translations to avoid redundant calls in the loop const fieldLabels: FieldLabels = useMemo( @@ -101,6 +103,10 @@ function MerchantRulesSection({policyID}: MerchantRulesSectionProps) { }); }, [codingRules]); + if (isProduction) { + return null; + } + const renderTitle = () => ( {translate('workspace.rules.merchantRules.title')}