firebase / friendlyeats-web

Apache License 2.0
437 stars 393 forks source link

Wrong current payload in setRestaurantDetails #292

Open johnnyoshika opened 1 month ago

johnnyoshika commented 1 month ago

There is a bug here: https://github.com/firebase/friendlyeats-web/blob/master/nextjs-start/src/components/Restaurant.jsx#L44

Instead of:

setRestaurantDetails({ ...restaurant, photo: imageURL });

It should be:

setRestaurantDetails({ ...restaurantDetails, photo: imageURL });