Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Thanks to the new white box unit tests for most of the messages.
  • Loading branch information
Secreto31126 committed Aug 24, 2023
1 parent a1d3c99 commit 943845c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages/contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Contacts extends ClientMessage {
const pointer = contact[name] as (typeof component)[];
pointer.push(component._build() as ContactComponent);
} else {
if (contact.name)
if (contact[name])
throw new Error(
`Contact already has a ${name} component and _many is set to false`
);
Expand Down

0 comments on commit 943845c

Please sign in to comment.