From 91df51c3296fd16eaf13f1d998f88e139507c0a9 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Mon, 8 Jul 2024 22:28:54 +0700 Subject: [PATCH] fix: Country field reverts to the previous selection --- src/components/StateSelector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StateSelector.tsx b/src/components/StateSelector.tsx index 4da8c33c2dc8..9091472efba5 100644 --- a/src/components/StateSelector.tsx +++ b/src/components/StateSelector.tsx @@ -89,7 +89,7 @@ function StateSelector( brickRoadIndicator={errorText ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined} errorText={errorText} onPress={() => { - const activeRoute = Navigation.getActiveRoute(); + const activeRoute = Navigation.getActiveRouteWithoutParams(); didOpenStateSelector.current = true; Navigation.navigate(stateSelectorRoute.getRoute(stateCode, activeRoute, label)); }}