Skip to content

Commit

Permalink
fix: removed default timezone and added the value from the user detai…
Browse files Browse the repository at this point in the history
…ls and handle the value in timezone select (#6381)
  • Loading branch information
gurusainath authored Jan 10, 2025
1 parent 95175ab commit cfdb337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/core/components/global/timezone-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const TimezoneSelect: FC<TTimezoneSelect> = observer((props) => {
<div>
<CustomSearchSelect
value={value}
label={selectedValue ? selectedValue(value) : label}
label={value && selectedValue ? selectedValue(value) : label}
options={isDisabled || disabled ? [] : timezones}
onChange={onChange}
buttonClassName={cn(buttonClassName, {
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/profile/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const ProfileForm = observer((props: TProfileFormProps) => {
email: user.email || "",
role: profile.role || "Product / Project Manager",
language: profile.language || "en",
user_timezone: "Asia/Kolkata",
user_timezone: user.user_timezone || "Asia/Kolkata",
},
});
// derived values
Expand Down

0 comments on commit cfdb337

Please sign in to comment.