Skip to content

Commit

Permalink
fix submitting bool instead of string for useAutomaticTimezone
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
antonbuks committed Sep 16, 2024
1 parent 1eb0232 commit a8e6542
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,13 @@ export default class RhsSettingsDisplay extends React.PureComponent<Props, State
// User preferences patch user and don't need to update preferences
if (newSettingsState.lastActiveDisplay !== this.props.lastActiveDisplay ||
!isEqual(newSettingsState.timezone, this.props.timezone)) {
const updatedTimezone = {
...newSettingsState.timezone,
useAutomaticTimezone: newSettingsState.timezone.useAutomaticTimezone.toString(),
};
const updatedUser = {
...user,
timezone: newSettingsState.timezone,
timezone: updatedTimezone,
props: {
...user.props,
show_last_active: newSettingsState.lastActiveDisplay,
Expand Down

0 comments on commit a8e6542

Please sign in to comment.