Skip to content

Commit

Permalink
fix(messagetemplate): Fixed reference to SignMessages array
Browse files Browse the repository at this point in the history
 (#13)
  • Loading branch information
thzinc authored Apr 26, 2017
1 parent 26dfda5 commit 1bc3ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/MessageTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MessageTemplate extends Resource {
const hydrated = !Object.keys(newProperties).every(k => k === 'href' || k === 'customerCode');
const references = {
sign_messages: newProperties.sign_messages
&& new SignMessage(this.client, newProperties.sign_messages),
&& newProperties.sign_messages.map(sm => new SignMessage(this.client, sm)),
};

Object.assign(this, newProperties, {
Expand Down

0 comments on commit 1bc3ed3

Please sign in to comment.