diff --git a/JS/index.js b/JS/index.js index 7cb2571..c71f11d 100644 --- a/JS/index.js +++ b/JS/index.js @@ -283,7 +283,7 @@ const cargado = () => { elCarrito.textContent = ""; cestaCompra = []; let elPrecioTotal = document.getElementById("total"); - elPrecioTotal = 0; + elPrecioTotal.textContent = 0; } function leerCesta() {