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>
|
<div>
|
||||||
<CustomSearchSelect
|
<CustomSearchSelect
|
||||||
value={value}
|
value={value}
|
||||||
label={selectedValue ? selectedValue(value) : label}
|
label={value && selectedValue ? selectedValue(value) : label}
|
||||||
options={isDisabled || disabled ? [] : timezones}
|
options={isDisabled || disabled ? [] : timezones}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
buttonClassName={cn(buttonClassName, {
|
buttonClassName={cn(buttonClassName, {
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ export const ProfileForm = observer((props: TProfileFormProps) => {
|
||||||
email: user.email || "",
|
email: user.email || "",
|
||||||
role: profile.role || "Product / Project Manager",
|
role: profile.role || "Product / Project Manager",
|
||||||
language: profile.language || "en",
|
language: profile.language || "en",
|
||||||
user_timezone: "Asia/Kolkata",
|
user_timezone: user.user_timezone || "Asia/Kolkata",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// derived values
|
// derived values
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue