From bd6cc8598ac46e5cd0940a78ff1c6aeb771474c8 Mon Sep 17 00:00:00 2001 From: 289Adam289 Date: Tue, 13 Aug 2024 11:36:54 +0200 Subject: [PATCH] review suggestions --- .../intacct/import/SageIntacctToggleMappingsPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/workspace/accounting/intacct/import/SageIntacctToggleMappingsPage.tsx b/src/pages/workspace/accounting/intacct/import/SageIntacctToggleMappingsPage.tsx index f0cd40cd8b5d..56a8278346c3 100644 --- a/src/pages/workspace/accounting/intacct/import/SageIntacctToggleMappingsPage.tsx +++ b/src/pages/workspace/accounting/intacct/import/SageIntacctToggleMappingsPage.tsx @@ -54,7 +54,7 @@ function SageIntacctToggleMappingsPage({route}: SageIntacctToggleMappingsPagePro const config = policy?.connections?.intacct?.config; const translationKeys = getDisplayTypeTranslationKeys(config?.mappings?.[mappingName]); - + const isImportMappingEnable = config?.mappings?.[mappingName] !== CONST.SAGE_INTACCT_MAPPING_VALUE.NONE; return ( { const mappingValue = enabled ? CONST.SAGE_INTACCT_MAPPING_VALUE.TAG : CONST.SAGE_INTACCT_MAPPING_VALUE.NONE; updateSageIntacctMappingValue(policyID, mappingName, mappingValue, config?.mappings?.[mappingName]); @@ -86,7 +86,7 @@ function SageIntacctToggleMappingsPage({route}: SageIntacctToggleMappingsPagePro errors={ErrorUtils.getLatestErrorField(config ?? {}, mappingName)} onCloseError={() => clearSageIntacctErrorField(policyID, mappingName)} /> - {config?.mappings?.[mappingName] !== CONST.SAGE_INTACCT_MAPPING_VALUE.NONE && ( + {isImportMappingEnable && (