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')}