Skip to content

Commit 8f4d784

Browse files
committed
correccion minima de logica de carrito vacio
1 parent e1475a7 commit 8f4d784

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/carrito.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ const cantTotalProductos = () => {
9393
function desplegarGraficosCarrito() {
9494
const carrito = obtenerCarritoLS();
9595
let contenido = "";
96-
97-
if (cantTotalProductos() > 0) {
96+
if (carrito && cantTotalProductos() > 0) {
9897
contenido = `
9998
<div class="tituloArticuloVta col-12">
10099
<h1 class="articulo">Tu carrito</h1>

0 commit comments

Comments
 (0)