fix: removed default timezone and added the value from the user details and handle the value in timezone select (#6381)
This commit is contained in:
parent
95175ab939
commit
cfdb3373c9
2 changed files with 2 additions and 2 deletions
|
|
@ -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, {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue