79715634

Date: 2025-07-26 11:40:49
Score: 1
Natty:
Report link

You should use filteredRestaurants instead filteredRestaurants! in <ul>
and use `

if (error) {
  setError(error.message || "Unknown error");
} else {
  setError(null);
}

in fetchrestaurant function for handle error
good luck.😉

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vahid amiri