fix: alert that certain fields in user settings are disabled is always shown (#928)

* fix: alert that certain fields in user settings are disabled is always shown

* fix: wrong inverted check
This commit is contained in:
Meier Lukas
2024-08-08 20:38:17 +02:00
committed by GitHub
parent 81946e50a9
commit 9258c397e0

View File

@@ -58,9 +58,11 @@ export default async function EditUserPage({ params }: Props) {
return ( return (
<Stack> <Stack>
<Alert variant="light" color="yellow" icon={<IconExclamationCircle size="1rem" stroke={1.5} />}> {!isCredentialsUser && (
{t("management.page.user.fieldsDisabledExternalProvider")} <Alert variant="light" color="yellow" icon={<IconExclamationCircle size="1rem" stroke={1.5} />}>
</Alert> {t("management.page.user.fieldsDisabledExternalProvider")}
</Alert>
)}
<Title>{tGeneral("title")}</Title> <Title>{tGeneral("title")}</Title>
<Group gap="xl"> <Group gap="xl">