From ab68ed2d4e5b0e1f5fd476da88e29654bdcfaea5 Mon Sep 17 00:00:00 2001 From: mikel Date: Thu, 1 Feb 2024 12:48:46 +0100 Subject: [PATCH] x --- JS/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {