From 9cf865bd28e7c403d2d40d94399fd157004dc40a Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa Date: Thu, 12 Sep 2024 09:33:16 -0300 Subject: [PATCH] calling goBack() only when upgraded --- src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx b/src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx index 0cdb15e33ac9..1e6040f8fc7c 100644 --- a/src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx +++ b/src/pages/workspace/upgrade/WorkspaceUpgradePage.tsx @@ -94,10 +94,10 @@ function WorkspaceUpgradePage({route}: WorkspaceUpgradePageProps) { onBackButtonPress={() => { if (isUpgraded) { Navigation.dismissModal(); + goBack(); } else { Navigation.goBack(); } - goBack(); }} /> {isUpgraded && (