added new alerts and modified restrictions to the lock

This commit is contained in:
2026-02-19 08:04:54 -06:00
parent ff08c85a50
commit 30de190e22
3 changed files with 45 additions and 6 deletions
+17
View File
@@ -120,6 +120,23 @@ function Receipt({ numAcount }: ReceiptsProps) {
if (lock && numericValue > 1000) {
toast.error("El monto no puede superar $1000.00");
Swal.fire({
title:
"El monto no puede superar $1000.00 Desbloquea el candado !",
icon: "error",
draggable: true,
});
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;
}