feat: cannot change username to the current one
This commit is contained in:
@@ -50,7 +50,11 @@ export const ProfileAccordion = ({ user }: ProfileAccordionProps) => {
|
|||||||
label={t("user.field.email.label")}
|
label={t("user.field.email.label")}
|
||||||
{...form.getInputProps("email")}
|
{...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")}
|
{t("common.action.save")}
|
||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
Reference in New Issue
Block a user