Skip to content

Commit

Permalink
Merge pull request #27745 from Expensify/lucien/fix-nested-timezone
Browse files Browse the repository at this point in the history
Prevent nested timezone setting
  • Loading branch information
danieldoglas authored Sep 27, 2023
2 parents ddc846c + b424d0a commit d7ad305
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libs/Navigation/AppNavigator/AuthScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ 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) {
timezone.selected = currentTimezone;
PersonalDetails.updateAutomaticTimezone(timezone);
PersonalDetails.updateAutomaticTimezone({
automatic: true,
selected: currentTimezone,
});
}
},
});
Expand Down

0 comments on commit d7ad305

Please sign in to comment.