diff --git a/15 - LocalStorage/index-FINISHED.html b/15 - LocalStorage/index-FINISHED.html index 2c492b1088..153f182b8a 100644 --- a/15 - LocalStorage/index-FINISHED.html +++ b/15 - LocalStorage/index-FINISHED.html @@ -45,14 +45,16 @@

LOCAL TAPAS

} function populateList(plates = [], platesList) { - platesList.innerHTML = plates.map((plate, i) => { - return ` -
  • - - -
  • - `; - }).join(''); + //once insert a node + if(platesList.childNodes[1].textContent === 'Loading Tapas...'){ + platesList.removeChild(platesList.childNodes[1]) + } + const plate = document.createElement('li') + plate.innerHTML = ` + + + ` + platesList.appendChild(plate) } function toggleDone(e) { @@ -74,4 +76,3 @@

    LOCAL TAPAS

    -