add client check
This commit is contained in:
parent
2ca6164d85
commit
487e372889
3 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue