diff --git a/src/app/components/send/send.js b/src/app/components/send/send.js index bed1105ad..b2c35edb2 100644 --- a/src/app/components/send/send.js +++ b/src/app/components/send/send.js @@ -32,7 +32,7 @@ app.component('send', { }); this.$scope.$watch('$ctrl.account.balance', () => { - this.amount.max = parseFloat(lsk.normalize(this.account.balance)) - 0.1; + this.amount.max = lsk.normalize(this.account.balance - 10000000); }); } diff --git a/src/test/components/send/send.spec.js b/src/test/components/send/send.spec.js index e7c96ac79..f8f29d04b 100644 --- a/src/test/components/send/send.spec.js +++ b/src/test/components/send/send.spec.js @@ -25,7 +25,7 @@ describe('Send component', () => { $scope.passphrase = 'robust swift grocery peasant forget share enable convince deputy road keep cheap'; $scope.account = { address: '8273455169423958419L', - balance: lsk.from(100), + balance: lsk.from(10535.77379498), }; element = $compile('')($scope); $scope.$digest(); @@ -86,7 +86,7 @@ describe('Send component', () => { it('should allow to send all funds', () => { const RECIPIENT_ADDRESS = '5932438298200837883L'; - const AMOUNT = lsk.normalize($scope.account.balance) - 0.1; + const AMOUNT = lsk.normalize($scope.account.balance - 10000000); $peers.active = { sendLSKPromise() {} }; const mock = sinon.mock($peers.active);