avoid negative fee
This commit is contained in:
parent
af4c45f811
commit
7b802b7f9a
2 changed files with 3 additions and 2 deletions
|
|
@ -80,8 +80,9 @@ angular.module('copayApp.controllers').controller('preferencesFeeController', fu
|
|||
var showCustomFeePrompt = function() {
|
||||
$scope.invalidCustomFeeEntered = true;
|
||||
$scope.showMaxWarning = false;
|
||||
$scope.showMinWarning = false;
|
||||
popupService.showPrompt(gettextCatalog.getString('Custom Fee'), gettextCatalog.getString('Set your own fee in satoshis/byte'), null, function(text) {
|
||||
if (!text || !parseInt(text)) return;
|
||||
if (!text || !parseInt(text) || parseInt(text) <= 0) return;
|
||||
$scope.feePerSatByte = parseInt(text);
|
||||
$scope.customFeePerKB = ($scope.feePerSatByte * 1000).toFixed();
|
||||
setMaxWarning();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue