From 3b1c3e9272ecd8086f41b4387028e366bd8252b6 Mon Sep 17 00:00:00 2001 From: Situ Chandra Shil <108292595+situchan@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:00:46 +0600 Subject: [PATCH] Revert "Prevent nested timezone setting" --- src/libs/Navigation/AppNavigator/AuthScreens.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libs/Navigation/AppNavigator/AuthScreens.js b/src/libs/Navigation/AppNavigator/AuthScreens.js index dee5b7d4b489..16d0e2225007 100644 --- a/src/libs/Navigation/AppNavigator/AuthScreens.js +++ b/src/libs/Navigation/AppNavigator/AuthScreens.js @@ -71,10 +71,8 @@ Onyx.connect({ // If the current timezone is different than the user's timezone, and their timezone is set to automatic // then update their timezone. if (_.isObject(timezone) && timezone.automatic && timezone.selected !== currentTimezone) { - PersonalDetails.updateAutomaticTimezone({ - automatic: true, - selected: currentTimezone, - }); + timezone.selected = currentTimezone; + PersonalDetails.updateAutomaticTimezone(timezone); } }, });