Fix buying if operation is not completed inmediatly (#4110)
This commit is contained in:
parent
d248f2dcd2
commit
5886b22f07
2 changed files with 5 additions and 5 deletions
|
|
@ -151,10 +151,10 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController',
|
|||
self.error = {errors: [{ message: 'Could not create address' }]};
|
||||
return;
|
||||
}
|
||||
coinbaseService.savePendingTransaction(updatedTx.data, {toAddr: addr}, function(err) {
|
||||
updatedTx.data['toAddr'] = addr;
|
||||
coinbaseService.savePendingTransaction(updatedTx.data, {}, function(err) {
|
||||
self.loading = null;
|
||||
if (err) $log.debug(err);
|
||||
updatedTx.data['toAddr'] = addr;
|
||||
if (updatedTx.data.status == 'completed') {
|
||||
self.sendToCopay(token, account, updatedTx.data);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue