Skip to content

Commit dbc5a63

Browse files
fix: disable timezone selection button for non-admin users (#8195)
1 parent c685042 commit dbc5a63

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

apps/web/core/components/project/form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {
411411
}}
412412
error={Boolean(errors.timezone)}
413413
buttonClassName="border-none"
414+
disabled={!isAdmin}
414415
/>
415416
</>
416417
)}

apps/web/core/hooks/use-timezone.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ const useTimezone = () => {
5959
query: "utc, coordinated universal time",
6060
content: "UTC",
6161
},
62-
{
63-
value: "Universal",
64-
query: "universal, coordinated universal time",
65-
content: "Universal",
66-
},
6762
];
6863

6964
const selectedTimezone = (value: string | undefined) => options.find((option) => option.value === value)?.content;

0 commit comments

Comments
 (0)