Fixed bug
This commit is contained in:
parent
b2cccada23
commit
38aff94e26
1 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ class VegetableTypes {
|
|||
for (let j = 0; j < type.Vegetables.length; j += 1) {
|
||||
let k = 0
|
||||
for (k = 0; k < vegetables.length; k += 1) {
|
||||
if (type.Vegetables[j].name < vegetables[k]) {
|
||||
if (type.Vegetables[j].name < vegetables[k].name) {
|
||||
console.log('Break at:', k)
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue