i thing i fix the impressions
This commit is contained in:
@@ -59,7 +59,6 @@ export default async function Page(props: {
|
||||
}
|
||||
|
||||
try {
|
||||
console.log(`getCost`)
|
||||
|
||||
const response = await getCost();
|
||||
costos = response;
|
||||
|
||||
@@ -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!",
|
||||
|
||||
Reference in New Issue
Block a user