Merge pull request #5601 from cmgustavo/bug/amazon-integration-05
Show error as an empty string if null
This commit is contained in:
commit
4fb7b2d1e2
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController', functio
|
|||
var showError = function(msg, err) {
|
||||
$scope.sendStatus = '';
|
||||
$log.error(err);
|
||||
err = err && err.errors ? err.errors[0].message : err;
|
||||
err = err && err.errors ? err.errors[0].message : (err || '');
|
||||
popupService.showAlert(msg, err);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue