mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
fixed unit merge bug
This commit is contained in:
@@ -573,7 +573,7 @@
|
|||||||
if (entry.food.id === item.food.id && entry.food.name === item.food.name) {
|
if (entry.food.id === item.food.id && entry.food.name === item.food.name) {
|
||||||
if (entry.unit === null && item.unit === null) {
|
if (entry.unit === null && item.unit === null) {
|
||||||
return true
|
return true
|
||||||
} else if (entry.unit !== null && item.unit !== null && entry.unit.id === item.unit.id) {
|
} else if (entry.unit !== null && item.unit !== null && entry.unit.id === item.unit.id && entry.unit.name === item.unit.name) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user