From 5511846daca600a91a0f50ecffd6f77dd0ca5538 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 11 Oct 2023 15:54:08 +0700 Subject: [PATCH] remove redandunt --- src/pages/EditRequestPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/EditRequestPage.js b/src/pages/EditRequestPage.js index 7124399eb18b..28e70dc1a47e 100644 --- a/src/pages/EditRequestPage.js +++ b/src/pages/EditRequestPage.js @@ -126,7 +126,7 @@ function EditRequestPage({betas, report, route, parentReport, policy, session, p const shouldShowCategories = isPolicyExpenseChat && Permissions.canUseCategories(betas) && (transactionCategory || OptionsListUtils.hasEnabledOptions(lodashValues(policyCategories))); // A flag for showing the tags page - const shouldShowTags = true; + const shouldShowTags = isPolicyExpenseChat && Permissions.canUseTags(betas) && (transactionTag || OptionsListUtils.hasEnabledOptions(lodashValues(policyTagList))); // Dismiss the modal when the request is paid or deleted useEffect(() => {