Skip to content

Commit

Permalink
fix validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sramko committed Sep 1, 2021
1 parent a8e889b commit e07ddce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "1.23.5",
"version": "1.23.6",
"description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.",
"main": "dist/src/index.js",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
2 changes: 1 addition & 1 deletion src/model/validation/HasDecimalPlaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function HasDecimalPlaces(decimals: number, validationOptions?: Validatio
constraints: [decimals],
validator: {
validate: (value) => new BigNumber(value).decimalPlaces() <= decimals,
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must have less than $constraint1 decimals', validationOptions),
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must have less than or equal to $constraint1 decimals', validationOptions),
}
}, validationOptions);
}

0 comments on commit e07ddce

Please sign in to comment.