fixed unit merge bug

This commit is contained in:
vabene1111
2021-02-03 20:28:36 +01:00
parent 966a107414
commit 4600aab13a

View File

@@ -573,7 +573,7 @@
if (entry.food.id === item.food.id && entry.food.name === item.food.name) {
if (entry.unit === null && item.unit === null) {
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
}
}