Skip to content

Commit

Permalink
fix(transfer): minimum amount of 1 prevents to send less amount of coins
Browse files Browse the repository at this point in the history
  • Loading branch information
beregovoy68 committed Dec 25, 2016
1 parent 6022df5 commit aee1914
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/js/portfolio/asset.reissue.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
assetAmount: {
required: true,
decimal: 0,
min: 1
min: 0
}
},
messages: {
Expand Down
2 changes: 1 addition & 1 deletion src/js/portfolio/asset.transfer.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
assetAmount: {
required: true,
decimal: 8, // stub value updated on validation
min: 1, // stub value updated on validation
min: 0, // stub value updated on validation
max: constants.JAVA_MAX_LONG // stub value updated on validation
},
assetFee: {
Expand Down
6 changes: 3 additions & 3 deletions src/js/wallet/wallet.send.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
sendAmount: {
required: true,
decimal: 8, // stub value updated on validation
min: 1, // stub value updated on validation
min: 0, // stub value updated on validation
max: constants.JAVA_MAX_LONG // stub value updated on validation
},
sendFee: {
Expand All @@ -38,9 +38,9 @@
sendFee: {
required: 'Transaction fee is required',
decimal: 'Transaction fee must be with no more than ' +
minimumFee.currency.precision + ' digits after the decimal point (.)',
minimumFee.currency.precision + ' digits after the decimal point (.)',
min: 'Transaction fee is too small. It should be greater or equal to ' +
minimumFee.formatAmount(true)
minimumFee.formatAmount(true)
}
}
};
Expand Down

0 comments on commit aee1914

Please sign in to comment.