Skip to content

Commit

Permalink
fix: hide current language switch in other users preferences (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meierschlumpf authored Jan 22, 2025
1 parent 99c8e5b commit 470d27e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ export default async function EditUserPage(props: Props) {
</Box>
</Group>

<Stack mb="lg">
<Title order={2}>{tGeneral("item.language")}</Title>
<CurrentLanguageCombobox />
</Stack>
{session?.user.id === user.id && (
<Stack mb="lg">
<Title order={2}>{tGeneral("item.language")}</Title>
<CurrentLanguageCombobox />
</Stack>
)}

<Stack mb="lg">
<Title order={2}>{tGeneral("item.board.title")}</Title>
Expand Down

0 comments on commit 470d27e

Please sign in to comment.