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 27, 2023
1 parent 7d32e61 commit 66b1aa8
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 66b1aa8

Please sign in to comment.