diff --git a/app/(private)/AgregarTiempo/Addtime.tsx b/app/(private)/AgregarTiempo/Addtime.tsx index 3757b54..ac5ff8c 100644 --- a/app/(private)/AgregarTiempo/Addtime.tsx +++ b/app/(private)/AgregarTiempo/Addtime.tsx @@ -161,6 +161,18 @@ export default function AddTime({ return; } + + if (numericValue > 10000) { + toast.error("El monto no puede superar $10000.00"); + Swal.fire({ + title: + "El monto no puede superar $10000.00 pesos", + icon: "error", + draggable: true, + }); + return; + } + setAmount(value); } }} @@ -187,9 +199,8 @@ export default function AddTime({