Skip to content

Commit

Permalink
Init new tz with old tz
Browse files Browse the repository at this point in the history
  • Loading branch information
Beamanator committed Aug 4, 2022
1 parent c148b74 commit e5758d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/actions/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit e5758d5

Please sign in to comment.