From 7792a718411218f342ea6c995319652ad49fff9e Mon Sep 17 00:00:00 2001 From: Kadir Sekha Date: Wed, 31 Jan 2018 16:15:20 -0400 Subject: [PATCH] fixed warning message but where it displayed fiat instead of bch or btc --- src/js/controllers/amount.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/amount.js b/src/js/controllers/amount.js index d25b47a89..25924bcf3 100644 --- a/src/js/controllers/amount.js +++ b/src/js/controllers/amount.js @@ -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();