add client check

This commit is contained in:
Matias Alejo Garcia 2016-06-13 08:37:14 -03:00
commit 487e372889
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
3 changed files with 10 additions and 1 deletions

View file

@ -142,6 +142,11 @@ angular.module('copayApp.controllers').controller('sellCoinbaseController',
this.createTx = function(token, account, amount) {
self.error = null;
if (!client) {
self.error = 'No wallet selected';
return;
}
var accountId = account.id;
var dataSrc = {
name: 'Received from Copay: ' + self.selectedWalletName