From 6d0ecd5fac0ea0514ab7af263d7aa67d478aeb19 Mon Sep 17 00:00:00 2001 From: c3024 Date: Tue, 8 Oct 2024 11:44:49 +0530 Subject: [PATCH] remove unnecessary dismissModal --- src/components/ConnectToXeroFlow/index.native.tsx | 1 - src/components/ConnectToXeroFlow/index.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/components/ConnectToXeroFlow/index.native.tsx b/src/components/ConnectToXeroFlow/index.native.tsx index 735c4bf131a3..5bffa97b55de 100644 --- a/src/components/ConnectToXeroFlow/index.native.tsx +++ b/src/components/ConnectToXeroFlow/index.native.tsx @@ -51,7 +51,6 @@ function ConnectToXeroFlow({policyID, session}: ConnectToXeroFlowProps & Connect { setIsRequire2FAModalOpen(false); - Navigation.dismissModal(); Navigation.navigate(ROUTES.SETTINGS_2FA.getRoute(ROUTES.POLICY_ACCOUNTING.getRoute(policyID), getXeroSetupLink(policyID))); }} onCancel={() => setIsRequire2FAModalOpen(false)} diff --git a/src/components/ConnectToXeroFlow/index.tsx b/src/components/ConnectToXeroFlow/index.tsx index 0a3403be78ec..5d0e88e1512b 100644 --- a/src/components/ConnectToXeroFlow/index.tsx +++ b/src/components/ConnectToXeroFlow/index.tsx @@ -34,7 +34,6 @@ function ConnectToXeroFlow({policyID}: ConnectToXeroFlowProps) { { setIsRequire2FAModalOpen(false); - Navigation.dismissModal(); Navigation.navigate(ROUTES.SETTINGS_2FA.getRoute(ROUTES.POLICY_ACCOUNTING.getRoute(policyID), getXeroSetupLink(policyID))); }} onCancel={() => {