Skip to content

Commit

Permalink
Prevent nested timezone setting
Browse files Browse the repository at this point in the history
  • Loading branch information
lakchote committed Sep 19, 2023
1 parent 0680e5d commit 3baa2e6
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 @@ -69,8 +69,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 3baa2e6

Please sign in to comment.