Skip to content
Merged
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
9dfa52e
add `adminPoliciesConnectedToQBDSelector`
lakchote Apr 1, 2026
c0843c8
add `useAdminPoliciesConnectedToQBD` hook
lakchote Apr 1, 2026
449d6ad
add `useHasPoliciesConnectedToQBD` hook
lakchote Apr 1, 2026
16eea2d
add QBD existing connections route
lakchote Apr 1, 2026
eb3eb5a
add QBD reuse existing connections screen
lakchote Apr 1, 2026
2dace0f
add QBD existing connections nav params
lakchote Apr 1, 2026
89b40ad
add QBD existing connections linking config
lakchote Apr 1, 2026
4cbcee0
add QBD existing connections to RHP
lakchote Apr 1, 2026
f5aedbc
add QBD existing connections navigator
lakchote Apr 1, 2026
d1350cc
add QBD existing connections page
lakchote Apr 1, 2026
ea301fa
add reuse check to QBD connect flow
lakchote Apr 1, 2026
5b5c109
add reuse check to QBD connect flow native
lakchote Apr 1, 2026
e536fb6
add QBD case to `copyExistingPolicyConnection`
lakchote Apr 1, 2026
f930c8a
refactor `existingConnections` param, add QBD
lakchote Apr 1, 2026
bf09195
update call sites for `existingConnections`
lakchote Apr 1, 2026
e122220
update AccountingContext for `existingConnections`
lakchote Apr 1, 2026
5968cd1
Merge remote-tracking branch 'origin/main' into lucien/fix-qbd-reuse-…
lakchote Apr 1, 2026
c872b27
add `hasPoliciesConnectedToQBDSelector`
lakchote Apr 2, 2026
3e2e8fd
use onyx selector in `useHasPoliciesConnectedToQBD`
lakchote Apr 2, 2026
bf416ce
use `useHasPoliciesConnectedToQBD` in flow
lakchote Apr 2, 2026
3a66454
memoize `menuItems` in QBD existing connections
lakchote Apr 2, 2026
4748f28
use `getIntegrationLastSuccessfulDate` for sync date
lakchote Apr 2, 2026
e9714cd
Merge remote-tracking branch 'origin/main' into lucien/fix-qbd-reuse-…
lakchote Apr 2, 2026
24ff078
add tests for QBD policy selectors
lakchote Apr 2, 2026
8320bf2
fix null to undefined in QBD selector test
lakchote Apr 2, 2026
4e3da84
restore `policyID` in useEffect deps
lakchote Apr 2, 2026
2e1f1d1
fix run QBD flow redirect only on mount
lakchote Apr 2, 2026
0cc4290
fix run QBD flow redirect only on mount (native)
lakchote Apr 2, 2026
eed1026
add comment explaining eslint-disable in QBD flow
lakchote Apr 2, 2026
4cedc45
add comment explaining eslint-disable in QBD flow (native)
lakchote Apr 2, 2026
96f9bce
merge origin/main into lucien/fix-qbd-reuse-connection
lakchote Apr 2, 2026
eb83c2b
Merge branch 'main' into lucien/fix-qbd-reuse-connection
lakchote Apr 2, 2026
c7de772
add create new connection option to QBD existing connections page
lakchote Apr 2, 2026
313bf0c
Merge branch 'main' into lucien/fix-qbd-reuse-connection
lakchote Apr 2, 2026
0ab336b
try to get rid of spellcheck cache
lakchote Apr 2, 2026
3819d31
remove space
lakchote Apr 2, 2026
64daeb8
rename to
lakchote Apr 2, 2026
536534c
Merge main into lucien/fix-qbd-reuse-connection
lakchote Apr 6, 2026
6be81a2
add `getQuickbooksDesktopSetupEntryRoute()`
lakchote Apr 6, 2026
4eb6ad8
fix qbd setup entry in web flow
lakchote Apr 6, 2026
2c10bae
fix qbd setup entry in native flow
lakchote Apr 6, 2026
3dcb931
fix qbd create connection route
lakchote Apr 6, 2026
ceb2fd9
update qbd upgrade fallback route
lakchote Apr 6, 2026
fce5a62
add test for qbd setup entry route
lakchote Apr 6, 2026
e86df30
add test for qbd reuse flow
lakchote Apr 6, 2026
0354793
fix qbd required-device back navigation
lakchote Apr 7, 2026
e7d4847
fix qbd setup page back navigation
lakchote Apr 7, 2026
3f62dcd
Merge remote-tracking branch 'origin/main' into lucien/fix-qbd-reuse-…
lakchote Apr 7, 2026
c5e7e67
remove unneeded file
lakchote Apr 8, 2026
fc3ee20
Merge main into lucien/fix-qbd-reuse-connection
lakchote Apr 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,10 @@ const ROUTES = {
return getUrlWithBackToParam(`workspaces/${policyID}/accounting/quickbooks-desktop/export` as const, backTo, false);
},
},
POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXISTING_CONNECTIONS: {
route: 'workspaces/:policyID/accounting/quickbooks-desktop/existing-connections',
getRoute: (policyID: string) => `workspaces/${policyID}/accounting/quickbooks-desktop/existing-connections` as const,
},
POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_SETUP_MODAL: {
route: 'workspaces/:policyID/accounting/quickbooks-desktop/setup-modal',
getRoute: (policyID: string) => `workspaces/${policyID}/accounting/quickbooks-desktop/setup-modal` as const,
Expand Down
1 change: 1 addition & 0 deletions src/SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ const SCREENS = {
QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES_SELECT: 'Workspace_Accounting_Quickbooks_Desktop_Export_Out_Of_Pocket_Expenses_Select',
QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES_ACCOUNT_SELECT: 'Workspace_Accounting_Quickbooks_Desktop_Export_Out_Of_Pocket_Expenses_Account_Select',
QUICKBOOKS_DESKTOP_EXPORT: 'Workspace_Accounting_Quickbooks_Desktop_Export',
QUICKBOOKS_DESKTOP_REUSE_EXISTING_CONNECTIONS: 'Policy_Accounting_Quickbooks_Desktop_Reuse_Existing_Connections',
QUICKBOOKS_DESKTOP_SETUP_MODAL: 'Policy_Accounting_Quickbooks_Desktop_Setup_Modal',
QUICKBOOKS_DESKTOP_SETUP_REQUIRED_DEVICE_MODAL: 'Policy_Accounting_Quickbooks_Desktop_Setup_Required_Device_Modal',
QUICKBOOKS_DESKTOP_TRIGGER_FIRST_SYNC: 'Policy_Accounting_Quickbooks_Desktop_Trigger_First_Sync',
Expand Down
11 changes: 10 additions & 1 deletion src/components/ConnectToQuickbooksDesktopFlow/index.native.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import {useEffect} from 'react';
import useHasPoliciesConnectedToQBD from '@hooks/useHasPoliciesConnectedToQBD';
import Navigation from '@libs/Navigation/Navigation';
import getQuickbooksDesktopSetupEntryRoute from '@pages/workspace/accounting/qbd/utils';
import ROUTES from '@src/ROUTES';
import type {ConnectToQuickbooksDesktopFlowProps} from './types';

function ConnectToQuickbooksDesktopFlow({policyID}: ConnectToQuickbooksDesktopFlowProps) {
const hasPoliciesConnectedToQBD = useHasPoliciesConnectedToQBD();

useEffect(() => {
Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_SETUP_REQUIRED_DEVICE_MODAL.getRoute(policyID));
if (hasPoliciesConnectedToQBD) {
Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXISTING_CONNECTIONS.getRoute(policyID));
return;
}
Navigation.navigate(getQuickbooksDesktopSetupEntryRoute(policyID));
// Runs once on mount — re-running when hasPoliciesConnectedToQBD changes mid-flow would interrupt an in-progress setup.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Expand Down
19 changes: 11 additions & 8 deletions src/components/ConnectToQuickbooksDesktopFlow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import {useEffect} from 'react';
import {isMobile} from '@libs/Browser';
import useHasPoliciesConnectedToQBD from '@hooks/useHasPoliciesConnectedToQBD';
import Navigation from '@libs/Navigation/Navigation';
import getQuickbooksDesktopSetupEntryRoute from '@pages/workspace/accounting/qbd/utils';
import ROUTES from '@src/ROUTES';
import type {ConnectToQuickbooksDesktopFlowProps} from './types';

const isMobileWeb = isMobile();

function ConnectToQuickbooksDesktopFlow({policyID}: ConnectToQuickbooksDesktopFlowProps) {
const hasPoliciesConnectedToQBD = useHasPoliciesConnectedToQBD();

useEffect(() => {
if (isMobileWeb) {
Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_SETUP_REQUIRED_DEVICE_MODAL.getRoute(policyID));
} else {
Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_SETUP_MODAL.getRoute(policyID));
if (hasPoliciesConnectedToQBD) {
Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXISTING_CONNECTIONS.getRoute(policyID));
return;
}
}, [policyID]);
Navigation.navigate(getQuickbooksDesktopSetupEntryRoute(policyID));
// Runs once on mount — re-running when hasPoliciesConnectedToQBD changes mid-flow would interrupt an in-progress setup.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return null;
}
Expand Down
10 changes: 10 additions & 0 deletions src/hooks/useAdminPoliciesConnectedToQBD.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ONYXKEYS from '@src/ONYXKEYS';
import {adminPoliciesConnectedToQBDSelector} from '@src/selectors/Policy';
import useOnyx from './useOnyx';

function useAdminPoliciesConnectedToQBD() {
const [policies] = useOnyx(ONYXKEYS.COLLECTION.POLICY);
return adminPoliciesConnectedToQBDSelector(policies);
}

export default useAdminPoliciesConnectedToQBD;
10 changes: 10 additions & 0 deletions src/hooks/useHasPoliciesConnectedToQBD.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ONYXKEYS from '@src/ONYXKEYS';
import {hasPoliciesConnectedToQBDSelector} from '@src/selectors/Policy';
import useOnyx from './useOnyx';

function useHasPoliciesConnectedToQBD() {
const [hasPolicies] = useOnyx(ONYXKEYS.COLLECTION.POLICY, {selector: hasPoliciesConnectedToQBDSelector});
return hasPolicies ?? false;
}

export default useHasPoliciesConnectedToQBD;
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ const SettingsModalStackNavigator = createModalStackNavigator<SettingsNavigatorP
[SCREENS.SETTINGS.WALLET.REPORT_VIRTUAL_CARD_FRAUD_CONFIRMATION]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/ReportVirtualCardFraudConfirmationPage').default,
[SCREENS.SETTINGS.WALLET.CARD_ACTIVATE]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/ActivatePhysicalCardPage').default,
[SCREENS.SETTINGS.WALLET.CARD_CHANGE_PIN]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/ExpensifyCardPage/ChangePINPage').default,
[SCREENS.SETTINGS.WALLET.CARD_CHANGE_PIN_ATM]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/ExpensifyCardPage/ChangePINATMPage').default,
[SCREENS.SETTINGS.WALLET.CARD_CHANGE_PIN_ATM]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/ExpensifyCardPage/ChangePINAtATMPage').default,
[SCREENS.SETTINGS.WALLET.TRANSFER_BALANCE]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/TransferBalancePage').default,
[SCREENS.SETTINGS.WALLET.CHOOSE_TRANSFER_ACCOUNT]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/ChooseTransferAccountPage').default,
[SCREENS.SETTINGS.WALLET.IMPORT_TRANSACTIONS]: () => require<ReactComponentModule>('../../../../pages/settings/Wallet/ImportTransactionsPage').default,
Expand Down Expand Up @@ -616,6 +616,8 @@ const SettingsModalStackNavigator = createModalStackNavigator<SettingsNavigatorP
require<ReactComponentModule>('../../../../pages/workspace/accounting/qbd/advanced/QuickbooksDesktopAutoSyncPage').default,
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_ACCOUNTING_METHOD]: () =>
require<ReactComponentModule>('../../../../pages/workspace/accounting/qbd/advanced/QuickbooksDesktopAccountingMethodPage').default,
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_REUSE_EXISTING_CONNECTIONS]: () =>
require<ReactComponentModule>('../../../../pages/workspace/accounting/qbd/QuickbooksDesktopExistingConnectionsPage').default,
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_MODAL]: () => require<ReactComponentModule>('../../../../pages/workspace/accounting/qbd/QuickBooksDesktopSetupPage').default,
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_REQUIRED_DEVICE_MODAL]: () =>
require<ReactComponentModule>('../../../../pages/workspace/accounting/qbd/RequireQuickBooksDesktopPage').default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const WORKSPACE_TO_RHP: Partial<Record<keyof WorkspaceSplitNavigatorParamList, s
SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES_ACCOUNT_SELECT,
SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES_SELECT,
SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT,
SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_REUSE_EXISTING_CONNECTIONS,
SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_MODAL,
SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_REQUIRED_DEVICE_MODAL,
SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_TRIGGER_FIRST_SYNC,
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ const config: LinkingOptions<RootNavigatorParamList>['config'] = {
path: ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES_SELECT.route,
},
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT]: {path: ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT.route},
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_REUSE_EXISTING_CONNECTIONS]: {
path: ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXISTING_CONNECTIONS.route,
},
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_MODAL]: {
path: ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_SETUP_MODAL.route,
},
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@ type SettingsNavigatorParamList = {
// eslint-disable-next-line no-restricted-syntax -- `backTo` usages in this file are legacy. Do not add new `backTo` params to screens. See contributingGuides/NAVIGATION.md
backTo?: Routes;
};
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_REUSE_EXISTING_CONNECTIONS]: {
policyID: string;
};
[SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_MODAL]: {
policyID: string;
};
Expand Down
3 changes: 3 additions & 0 deletions src/libs/actions/connections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ function copyExistingPolicyConnection(connectedPolicyID: string, targetPolicyID:
case CONST.POLICY.CONNECTIONS.NAME.SAGE_INTACCT:
stageInProgress = CONST.POLICY.CONNECTIONS.SYNC_STAGE_NAME.SAGE_INTACCT_SYNC_CHECK_CONNECTION;
break;
case CONST.POLICY.CONNECTIONS.NAME.QBD:
stageInProgress = CONST.POLICY.CONNECTIONS.SYNC_STAGE_NAME.STARTING_IMPORT_QBD;
break;
default:
stageInProgress = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import OutcomeScreenBase from '@components/MultifactorAuthentication/components/
import useLocalize from '@hooks/useLocalize';
import variables from '@styles/variables';

function ChangePINATMPage() {
function ChangePINAtATMPage() {
const {translate} = useLocalize();

return (
Expand All @@ -18,6 +18,6 @@ function ChangePINATMPage() {
);
}

ChangePINATMPage.displayName = 'ChangePINATMPage';
ChangePINAtATMPage.displayName = 'ChangePINAtATMPage';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we renaming this in this PR? Is this from a bad conflict resolution?

Copy link
Copy Markdown
Contributor Author

@lakchote lakchote Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this from a bad conflict resolution?

No, it's to fix this error that showed up since we've touched the file:

image

https://github.com/Expensify/App/actions/runs/23917005575/job/69753374824


export default ChangePINATMPage;
export default ChangePINAtATMPage;
8 changes: 5 additions & 3 deletions src/pages/workspace/accounting/AccountingContext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {RefObject} from 'react';
import type {View} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import AccountingConnectionConfirmationModal from '@components/AccountingConnectionConfirmationModal';
import useHasPoliciesConnectedToQBD from '@hooks/useHasPoliciesConnectedToQBD';
import useHasPoliciesConnectedToSageIntacct from '@hooks/useHasPoliciesConnectedToSageIntacct';
import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
Expand Down Expand Up @@ -30,6 +31,7 @@ function AccountingContextProvider({children, policy}: AccountingContextProvider
const policyID = policy?.id;
const accountingIcons = useMemoizedLazyExpensifyIcons(['IntacctSquare', 'QBOSquare', 'XeroSquare', 'NetSuiteSquare', 'QBDSquare']);
const hasPoliciesConnectedToSageIntacct = useHasPoliciesConnectedToSageIntacct();
const hasPoliciesConnectedToQBD = useHasPoliciesConnectedToQBD();

const startIntegrationFlow = useCallback(
(newActiveIntegration: ActiveIntegration) => {
Expand All @@ -41,7 +43,7 @@ function AccountingContextProvider({children, policy}: AccountingContextProvider
newActiveIntegration.name,
policyID,
translate,
hasPoliciesConnectedToSageIntacct,
{sageIntacct: hasPoliciesConnectedToSageIntacct, qbd: hasPoliciesConnectedToQBD},
undefined,
undefined,
newActiveIntegration.integrationToDisconnect,
Expand All @@ -61,7 +63,7 @@ function AccountingContextProvider({children, policy}: AccountingContextProvider
key: Math.random(),
});
},
[policy, policyID, translate, hasPoliciesConnectedToSageIntacct, accountingIcons],
[policy, policyID, translate, hasPoliciesConnectedToSageIntacct, hasPoliciesConnectedToQBD, accountingIcons],
);

const closeConfirmationModal = () => {
Expand Down Expand Up @@ -101,7 +103,7 @@ function AccountingContextProvider({children, policy}: AccountingContextProvider
activeIntegration.name,
policyID,
translate,
hasPoliciesConnectedToSageIntacct,
{sageIntacct: hasPoliciesConnectedToSageIntacct, qbd: hasPoliciesConnectedToQBD},
policy,
activeIntegration.key,
undefined,
Expand Down
10 changes: 7 additions & 3 deletions src/pages/workspace/accounting/PolicyAccountingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import ThreeDotsMenu from '@components/ThreeDotsMenu';
import type ThreeDotsMenuProps from '@components/ThreeDotsMenu/types';
import useEnvironment from '@hooks/useEnvironment';
import useExpensifyCardFeeds from '@hooks/useExpensifyCardFeeds';
import useHasPoliciesConnectedToQBD from '@hooks/useHasPoliciesConnectedToQBD';
import useHasPoliciesConnectedToSageIntacct from '@hooks/useHasPoliciesConnectedToSageIntacct';
import {useMemoizedLazyExpensifyIcons, useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
Expand Down Expand Up @@ -74,6 +75,7 @@ type RouteParams = {
function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
useWorkspaceDocumentTitle(policy?.name, 'workspace.common.accounting');
const hasPoliciesConnectedToSageIntacct = useHasPoliciesConnectedToSageIntacct();
const hasPoliciesConnectedToQBD = useHasPoliciesConnectedToQBD();
const [connectionSyncProgress] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CONNECTION_SYNC_PROGRESS}${policy?.id}`);
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
const theme = useTheme();
Expand Down Expand Up @@ -301,7 +303,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
integration,
policyID,
translate,
hasPoliciesConnectedToSageIntacct,
{sageIntacct: hasPoliciesConnectedToSageIntacct, qbd: hasPoliciesConnectedToQBD},
undefined,
undefined,
undefined,
Expand Down Expand Up @@ -365,7 +367,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
connectedIntegration,
policyID,
translate,
hasPoliciesConnectedToSageIntacct,
{sageIntacct: hasPoliciesConnectedToSageIntacct, qbd: hasPoliciesConnectedToQBD},
policy,
undefined,
undefined,
Expand Down Expand Up @@ -499,6 +501,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
popoverAnchorRefs,
datetimeToRelative,
hasPoliciesConnectedToSageIntacct,
hasPoliciesConnectedToQBD,
]);

const otherIntegrationsItems = useMemo(() => {
Expand All @@ -514,7 +517,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
integration,
policyID,
translate,
hasPoliciesConnectedToSageIntacct,
{sageIntacct: hasPoliciesConnectedToSageIntacct, qbd: hasPoliciesConnectedToQBD},
undefined,
undefined,
undefined,
Expand Down Expand Up @@ -568,6 +571,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
policyID,
translate,
hasPoliciesConnectedToSageIntacct,
hasPoliciesConnectedToQBD,
styles.justifyContentCenter,
styles.sectionMenuItemTopDescription,
isOffline,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function RequireQuickBooksDesktopModal({route}: RequireQuickBooksDesktopModalPro
<HeaderWithBackButton
title={translate('workspace.qbd.qbdSetup')}
shouldShowBackButton
onBackButtonPress={() => Navigation.dismissModal()}
onBackButtonPress={() => Navigation.goBack()}
/>
{hasResultOfFetchingSetupLink ? children : <FullPageOfflineBlockingView addBottomSafeAreaPadding>{children}</FullPageOfflineBlockingView>}
</ScreenWrapper>
Expand Down
Loading
Loading