Show launch page when all favorites are removed
Opened this issue · 0 comments
scottrohrig commented
Description
- When a user has removed all favorites and the clicks the favorites button, the console will show the following error:
Uncaught TypeError: Cannot read properties of undefined (reading 'name')
at makeFirstResult (script.js:256:24)
Requirements
- Add validation check for empty favorites
- Simple solution, refresh the page so the default empty results card shows
- Longer/cleaner solution, make a function to dynamically generate that default view card from
script.js