| Issue 1: | Cannot add to cart in restaurant page | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Go to restaurant.show page 2. Click dish, try add to cart What is the expected output? What do you see instead? Expected dish item add to the sidebar cart, only the restaurant name shows. Expected cart_count in dish list, NaN instead. |
JS need restaurant ID. Add class name "restaurant${restaurantInfo.restaurant.id}" to <li class="restaurant"> solves this problem.