Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

feat: cannot change username to the current one

Thomas Camlong0ae8a75a5ef3
diff --git a/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx b/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx
index 00a65d0ea..b851631df 100644
--- a/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx
+++ b/apps/nextjs/src/app/[locale]/manage/users/[userId]/_components/profile.accordion.tsx
@@ -50,7 +50,11 @@ export const ProfileAccordion = ({ user }: ProfileAccordionProps) => {
label={t("user.field.email.label")}
{...form.getInputProps("email")}
/>
- <Button type="submit" disabled={!form.isValid()} loading={isPending}>
+ <Button
+ type="submit"
+ disabled={!form.isValid() || !form.isDirty()}
+ loading={isPending}
+ >
{t("common.action.save")}
</Button>
</Stack>