From 42d240e2603434f4a153674510f385b4f3899a3a Mon Sep 17 00:00:00 2001 From: layacat Date: Tue, 15 Oct 2024 08:44:24 +0700 Subject: [PATCH 1/2] fix: [QBO] There is no option to enter credentials --- src/pages/workspace/accounting/PolicyAccountingPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index 0f02e350d91a..b794043de36e 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -107,7 +107,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) { const overflowMenu: ThreeDotsMenuProps['menuItems'] = useMemo( () => [ - ...(shouldShowEnterCredentials && (connectedIntegration === CONST.POLICY.CONNECTIONS.NAME.SAGE_INTACCT || connectedIntegration === CONST.POLICY.CONNECTIONS.NAME.NETSUITE) + ...(connectedIntegration === CONST.POLICY.CONNECTIONS.NAME.SAGE_INTACCT || connectedIntegration === CONST.POLICY.CONNECTIONS.NAME.NETSUITE ? [ { icon: Expensicons.Key, @@ -133,7 +133,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) { shouldCallAfterModalHide: true, }, ], - [shouldShowEnterCredentials, translate, isOffline, policyID, connectedIntegration, startIntegrationFlow], + [translate, isOffline, policyID, connectedIntegration, startIntegrationFlow], ); useFocusEffect( From 8173b9d741f2aa399dc4e18d12505aa2aeda8ec0 Mon Sep 17 00:00:00 2001 From: layacat Date: Tue, 15 Oct 2024 09:12:34 +0700 Subject: [PATCH 2/2] fix: [QBO] There is no option to enter credentials --- src/pages/workspace/accounting/PolicyAccountingPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index b794043de36e..99979e359c20 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -107,7 +107,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) { const overflowMenu: ThreeDotsMenuProps['menuItems'] = useMemo( () => [ - ...(connectedIntegration === CONST.POLICY.CONNECTIONS.NAME.SAGE_INTACCT || connectedIntegration === CONST.POLICY.CONNECTIONS.NAME.NETSUITE + ...(shouldShowEnterCredentials ? [ { icon: Expensicons.Key, @@ -133,7 +133,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) { shouldCallAfterModalHide: true, }, ], - [translate, isOffline, policyID, connectedIntegration, startIntegrationFlow], + [shouldShowEnterCredentials, translate, isOffline, policyID, connectedIntegration, startIntegrationFlow], ); useFocusEffect(