i thing i fix the impressions

This commit is contained in:
2026-02-26 09:22:39 -06:00
parent b7aa2fa66b
commit c0cf9ecda0
2 changed files with 2 additions and 4 deletions
-1
View File
@@ -59,7 +59,6 @@ export default async function Page(props: {
}
try {
console.log(`getCost`)
const response = await getCost();
costos = response;
+2 -3
View File
@@ -19,8 +19,7 @@ interface ImpressionsProps {
function Impressions({ costs, numAcount, id_servicio }: ImpressionsProps) {
const [pages, setPages] = useState("");
const [cost, setCost] = useState(String(costs[0].value));
console.log(id_servicio)
console.log(costs)
const total = Number(cost) * Number(pages);
const router = useRouter();
@@ -82,7 +81,7 @@ console.log(costs)
}
setPages("");
setCost("");
setCost(String(costs[0].value));
Swal.fire({
title: "Impresion cobrada correctamente!",