fixed bug which was stopping sending to contacts
This commit is contained in:
parent
e25187850f
commit
d64b4c335c
1 changed files with 8 additions and 1 deletions
|
|
@ -189,6 +189,13 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
//Error is already formated
|
//Error is already formated
|
||||||
return popupService.showAlert(err);
|
return popupService.showAlert(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.recipientType && item.recipientType == 'contact') {
|
||||||
|
if (addr.indexOf('bch') == 0 || addr.indexOf('btc') == 0) {
|
||||||
|
addr = addr.substring(3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$log.debug('Got toAddress:' + addr + ' | ' + item.name);
|
$log.debug('Got toAddress:' + addr + ' | ' + item.name);
|
||||||
return $state.transitionTo('tabs.send.amount', {
|
return $state.transitionTo('tabs.send.amount', {
|
||||||
recipientType: item.recipientType,
|
recipientType: item.recipientType,
|
||||||
|
|
@ -197,7 +204,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
toEmail: item.email,
|
toEmail: item.email,
|
||||||
toColor: item.color,
|
toColor: item.color,
|
||||||
coin: item.coin
|
coin: item.coin
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue