Arreglado error de ts

This commit is contained in:
2025-12-01 22:37:24 -03:00
parent c2c8bd58a8
commit 4b1f6c9f7a
2 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ import type { LoginDto } from "../../types";
import { sesionStore } from "@/stores/usuario";
import { goto } from "$app/navigation";
export async function login(e:FormDataEvent,dto: LoginDto, callbackfn:()=>void){
export async function login(e:SubmitEvent, dto: LoginDto, callbackfn:()=>void){
e.preventDefault();
if (dto.password == "" || dto.username == "") return;
try {