Skip to content

Commit cfdb337

Browse files
authored
fix: removed default timezone and added the value from the user details and handle the value in timezone select (#6381)
1 parent 95175ab commit cfdb337

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/core/components/global/timezone-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const TimezoneSelect: FC<TTimezoneSelect> = observer((props) => {
3737
<div>
3838
<CustomSearchSelect
3939
value={value}
40-
label={selectedValue ? selectedValue(value) : label}
40+
label={value && selectedValue ? selectedValue(value) : label}
4141
options={isDisabled || disabled ? [] : timezones}
4242
onChange={onChange}
4343
buttonClassName={cn(buttonClassName, {

web/core/components/profile/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const ProfileForm = observer((props: TProfileFormProps) => {
6262
email: user.email || "",
6363
role: profile.role || "Product / Project Manager",
6464
language: profile.language || "en",
65-
user_timezone: "Asia/Kolkata",
65+
user_timezone: user.user_timezone || "Asia/Kolkata",
6666
},
6767
});
6868
// derived values

0 commit comments

Comments
 (0)