diff --git a/src/components/meals/PersonList.vue b/src/components/meals/PersonList.vue index 793f6ec..87fbbba 100644 --- a/src/components/meals/PersonList.vue +++ b/src/components/meals/PersonList.vue @@ -148,7 +148,7 @@ export default { this.searchResults = results.filter(p => !idSet.has(p.id)); }, addPerson(person) { - if (!person?.id >= 0 && this.searchResults.length > 0) + if (!person && this.searchResults.length > 0) { person = this.searchResults[0]; }