Account migration funktioniert nun
This commit is contained in:
@@ -32,7 +32,7 @@ export const ProfileForm = ({
|
||||
user: User;
|
||||
penaltys: Penalty[];
|
||||
}): React.JSX.Element => {
|
||||
const canEdit = penaltys.length === 0 && user.isBanned;
|
||||
const canEdit = penaltys.length === 0 && !user.isBanned;
|
||||
|
||||
const schema = z.object({
|
||||
firstname: z.string().min(2).max(30),
|
||||
@@ -318,7 +318,7 @@ export const DeleteForm = ({ user, penaltys }: { user: User; penaltys: Penalty[]
|
||||
className="btn-error btn-outline btn-sm w-full"
|
||||
onClick={async () => {
|
||||
await deleteUser(user.id);
|
||||
router.push("/login");
|
||||
router.push("/logout");
|
||||
}}
|
||||
>
|
||||
<Trash2 size={15} /> Konto sofort löschen
|
||||
|
||||
Reference in New Issue
Block a user