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:
guru_sainath 2025-01-10 18:41:12 +05:30 committed by GitHub
parent 95175ab939
commit cfdb3373c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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, {

View file

@ -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