forked from zv0n/lunch-go
Fresh: fix not all meals being added
This commit is contained in:
parent
3b6a53aff1
commit
629c373ea1
@ -108,7 +108,7 @@ func (restaurant *FreshRestaurant) Parse() {
|
||||
continue
|
||||
}
|
||||
for ind, meal := range meals[i] {
|
||||
if ind >= len(prices) {
|
||||
if ind >= len(prices[i]) {
|
||||
break
|
||||
}
|
||||
restaurant.menus[i].Add(ind == 0, meal, "", prices[i][ind])
|
||||
|
Loading…
Reference in New Issue
Block a user