Commit 18670825 authored by Renfred Harper's avatar Renfred Harper

Fix bug that caused restaurants to incorrectly be shown as open

parent f29d406e
...@@ -118,7 +118,7 @@ function update_grid(restaurants) { ...@@ -118,7 +118,7 @@ function update_grid(restaurants) {
return false; return false;
} }
} else if (start_day > end_day) { } else if (start_day > end_day) {
if (day < start_day || day > end_day) { if (day > start_day || day < end_day) {
restaurant.open = true; restaurant.open = true;
restaurant.current = time; restaurant.current = time;
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment