Build a Recipe Ingredient Converter - Step 18

Tell us what’s happening:

I think I met all the requirements to pass this test but this test is not passing. Step: 18

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const updateResultsList = () => {
  resultList.innerHTML = "";
  units.forEach(unit => {
    if(unit !== unitToConvert.value) {
      const converted = convertQuantity(unitToConvert.value)(unit)(Number(ingredientQuantity.value));
      
      resultList.innerHTML += `<li>${ingredientName.value}: ${converted} ${unit}</li>`
    }
  })
}


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build a Recipe Ingredient Converter - Step 18

Is there a better function you can use?

used another function and it worked.