modified restrictions to acept 0 in numAcount
This commit is contained in:
@@ -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!",
|
||||
|
||||
@@ -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!",
|
||||
|
||||
@@ -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!",
|
||||
|
||||
@@ -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!",
|
||||
|
||||
Reference in New Issue
Block a user