fixed warning message but where it displayed fiat instead of bch or btc

This commit is contained in:
Kadir Sekha 2018-01-31 16:15:20 -04:00
commit 7792a71841

View file

@ -464,7 +464,8 @@ angular.module('copayApp.controllers').controller('amountController', function($
}
if ($scope.showWarningMessage) {
var message = 'Are you sure you want to send ' + $scope.unit.toUpperCase() + '?';
var u = $scope.unit == 'BCH' || $scope.unit == 'BTC' ? $scope.unit : $scope.alternativeUnit;
var message = 'Are you sure you want to send ' + u.toUpperCase() + '?';
popupService.showConfirm(message, null, 'Yes', 'No', function(res) {
if (!res) return;
finish();