Fixed destination coin for Shapeshift.

This commit is contained in:
Brendon Duncan 2018-08-06 20:39:59 +12:00
commit 731cfebc8a

View file

@ -168,8 +168,10 @@ angular.module('copayApp.controllers').controller('walletSelectorController', fu
}
} else if ($scope.type === 'destination') {
$scope.fromWallet = profileService.getWallet(fromWalletId);
$scope.coin = $scope.fromWallet.coin; // Only show wallets with the select origin wallet coin
if (!$scope.coin) { // Allow for the coin to be set by a third party
$scope.fromWallet = profileService.getWallet(fromWalletId);
$scope.coin = $scope.fromWallet.coin; // Only show wallets with the select origin wallet coin
}
$scope.headerTitle = gettextCatalog.getString('Choose a wallet to send to');
if ($scope.coin === 'btc') { // if no specific coin is set or coin is set btc