From e5758d5935487c3e98e3e073537aa739ef9af15a Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Thu, 4 Aug 2022 10:03:27 +0200 Subject: [PATCH] Init new tz with old tz --- src/libs/actions/App.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/actions/App.js b/src/libs/actions/App.js index 25d14818f279..e6914a2ceff0 100644 --- a/src/libs/actions/App.js +++ b/src/libs/actions/App.js @@ -210,15 +210,13 @@ function setUpPoliciesAndNavigate(session, currentPath) { function openProfile() { const oldTimezoneData = myPersonalDetails.timezone || {}; - let newTimezoneData; + let newTimezoneData = oldTimezoneData; if (lodashGet(oldTimezoneData, 'automatic', true)) { newTimezoneData = { automatic: true, selected: moment.tz.guess(true), }; - } else { - newTimezoneData = oldTimezoneData; } API.write('OpenProfile', {