@mattstuddert
Posted
Nice work on this challenge, Beatriz! It's great to hear that you had fun building it. Your solution looks really good. As you said, there are a few small bugs in there which would be worth trying to resolve. With the search, you need to use event.preventDefault()
to stop the browser refreshing when the form is submitted. You also need to make sure that if no countries are returned that you're at least returning an empty array. This is what's causing the error as .map
will only work on an array.
Keep up the great work!
@beatrizalmeidapires
Posted
@mattstuddert thank you for the feedback! I appreciate it.