Skip to content

Commit 8d9c8ad

Browse files
devsndbobrippling
andauthored
Update apps/contacts/contacts.app.js
Co-authored-by: Rob Pilling <robpilling@gmail.com>
1 parent a6b0be9 commit 8d9c8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/contacts/contacts.app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function mainMenu() {
2929
if (!contacts.length) {
3030
menu['No Contacts'] = () => {};
3131
}
32-
contacts.map((e, idx) => {
32+
contacts.forEach((e, idx) => {
3333
menu[e.name] = () => showContact(idx)
3434
})
3535
menu["Add Contact"] = addContact;

0 commit comments

Comments
 (0)