mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-11 14:50:44 -03:00
Arreglado error de ts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user