fix style and bump version

This commit is contained in:
Matthew Fettig
2018-09-05 09:01:16 -05:00
parent b1eecd7e93
commit e0a6473814
2 changed files with 4 additions and 2 deletions

View File

@@ -76,7 +76,9 @@ const Amount = makeClass({
this.value = value || new Decimal('0');
this.currency = currency || Currency.XRP;
this.issuer = issuer || null;
validate && this.assertValueIsValid();
if (validate) {
this.assertValueIsValid();
}
},
mixins: SerializedType,
statics: {