Fix to send the amount if shapeshift case

This commit is contained in:
Jean-Baptiste Dominguez 2018-09-06 20:29:50 +09:00
commit 6a8f8ca33b

View file

@ -283,6 +283,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
unitIndex = tempIndex;
}
vm.amount = transactionSendableAmountInUnits.toFixed(LENGTH_AFTER_COMMA_EXPRESSION_LIMIT);
useSendMax = true;
finish();
}
}
@ -507,7 +508,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
}
var confirmData = {
amount: useSendMax ? undefined : satoshis,
amount: (useSendMax && canSendMax) ? undefined : satoshis,
displayAddress: passthroughParams.displayAddress,
fromWalletId: passthroughParams.fromWalletId,
sendMax: useSendMax,