adrianhajdin / project_travel_advisor

Tutorial created in collaboration with Enyel Sequeira, taught by JavaScript Mastery.
MIT License
2.01k stars 444 forks source link

Does anyone got no awards from api data? #44

Open toppyc4 opened 1 year ago

toppyc4 commented 1 year ago

Seem like data that provide to me have an awards key but its value contain an empty array. Does anyone facing this issue or know how to fix it?

joshuanarvaez commented 1 year ago

I completed this project a few months ago and had no issue displaying the awards. However, I revisited it today and can't get the awards to display. I also get practically no data from Hotels. I think it's because the API is deprecated but I might be wrong.

shivendra8004 commented 1 year ago

@joshuanarvaez Yes, you are correct i am also facing some issues while fetching data of hotels and awards, so i added conditions in the code if there is any awards then only it will display unless it will act like ""