Update apps/contacts/contacts.app.js

Co-authored-by: Rob Pilling <robpilling@gmail.com>
pull/3701/head
Tom Wallroth 2024-12-24 15:04:29 +01:00 committed by GitHub
parent a6b0be9bad
commit 8d9c8ad01b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function mainMenu() {
if (!contacts.length) {
menu['No Contacts'] = () => {};
}
contacts.map((e, idx) => {
contacts.forEach((e, idx) => {
menu[e.name] = () => showContact(idx)
})
menu["Add Contact"] = addContact;