diff --git a/app/(private)/AgregarTiempo/Addtime.tsx b/app/(private)/AgregarTiempo/Addtime.tsx index 70f4b77..4cc302c 100644 --- a/app/(private)/AgregarTiempo/Addtime.tsx +++ b/app/(private)/AgregarTiempo/Addtime.tsx @@ -46,7 +46,7 @@ export default function AddTime({ const maxFecha = new Date(year, month, today).toISOString().split("T")[0]; const handleSaveReceipt = async () => { - if (!numAcount) { + if (numAcount == null) { Swal.fire({ title: "Busca de nuevo al estudiante!", diff --git a/app/Components/Impressions/impressions.tsx b/app/Components/Impressions/impressions.tsx index f41190d..7911ef4 100644 --- a/app/Components/Impressions/impressions.tsx +++ b/app/Components/Impressions/impressions.tsx @@ -21,7 +21,6 @@ function Impressions({ costs, numAcount, id_servicio }: ImpressionsProps) { const [cost, setCost] = useState(String(costs[0].value)); const router = useRouter(); - const handleLogout = () => { Cookies.remove("token"); Cookies.remove("session"); @@ -29,7 +28,7 @@ function Impressions({ costs, numAcount, id_servicio }: ImpressionsProps) { }; const handlePayment = async () => { - if (!numAcount) { + if (numAcount == null) { Swal.fire({ title: "busca de nuevo al estudiante!", diff --git a/app/Components/Receipt/Inscripcion.tsx b/app/Components/Receipt/Inscripcion.tsx index c7a0f67..6221a31 100644 --- a/app/Components/Receipt/Inscripcion.tsx +++ b/app/Components/Receipt/Inscripcion.tsx @@ -50,7 +50,7 @@ export default function Inscripcion({ //restrict this month// const handleSaveReceipt = async () => { - if (!numAcount) { + if (numAcount == null) { Swal.fire({ title: "busca de nuevo al estudiante!", @@ -143,7 +143,7 @@ export default function Inscripcion({ }; const handleInscripcionSinPago = async () => { - if (!numAcount) { + if (numAcount == null) { Swal.fire({ title: "busca de nuevo al estudiante!", diff --git a/app/Components/Receipt/Receipt.tsx b/app/Components/Receipt/Receipt.tsx index 897dcfe..24db703 100644 --- a/app/Components/Receipt/Receipt.tsx +++ b/app/Components/Receipt/Receipt.tsx @@ -31,7 +31,7 @@ export default function Receipt({ numAcount }: ReceiptsProps) { //restrict this month// const handleSaveReceipt = async () => { - if (!numAcount) { + if (numAcount == null) { Swal.fire({ title: "busca de nuevo al estudiante!",