Skip to content

Commit

Permalink
Merge pull request #28355 from Expensify/lucien/fix-nested-timezone
Browse files Browse the repository at this point in the history
Prevent nested timezone setting
  • Loading branch information
yuwenmemon authored Sep 28, 2023
2 parents 0c49b11 + 66b1aa8 commit f3ce23b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/Navigation/AppNavigator/AuthScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ Onyx.connect({
// 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 f3ce23b

Please sign in to comment.