kirk-en / foodrat-frontend

1 stars 1 forks source link

Restaurant grade icons not always loading #28

Closed kirk-en closed 2 months ago

kirk-en commented 2 months ago

Sometimes certain restaurants will return a limited violations array which does not contain any indexes with a "grade" property. Moving the bounds will often fix this as the API is re-requested and the restaurant reloads and now has a larger violations array which contains at least one index with a grade property.

You can see this happen with the restaurant MONTESACRO (- 40.713324292298 | long - -73.951494211773) :