Arreglado error de ts

This commit is contained in:
2025-12-01 22:37:24 -03:00
parent 476c1308d0
commit c2c8bd58a8
2 changed files with 18 additions and 13 deletions

View File

@@ -2,7 +2,7 @@ import { apiBase } from "@/stores/url";
import { goto } from "$app/navigation";
import type { RegisterDto } from "../../types";
export async function register(e:FormDataEvent,dto: RegisterDto, callbackfn:()=>void){
export async function register(e: SubmitEvent, dto: RegisterDto, callbackfn:()=>void){
e.preventDefault();
if (dto.password == "" || dto.username == "" ||
!dto.email?.includes("@") || dto.displayName=="") return;