add client check
This commit is contained in:
parent
2ca6164d85
commit
487e372889
3 changed files with 10 additions and 1 deletions
|
|
@ -94,6 +94,11 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
|
|||
var configWallet = config.wallet;
|
||||
var walletSettings = configWallet.settings;
|
||||
|
||||
if (!client) {
|
||||
self.error = 'No wallet selected';
|
||||
return;
|
||||
}
|
||||
|
||||
addressService.getAddress(client.credentials.walletId, null, function(err, refundAddress) {
|
||||
if (!refundAddress) {
|
||||
self.loading = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue