Merge pull request #357 from Bitcoin-com/wallet/task/546
546 - Bugfix for crashing when scanning BitPay invoice URL
This commit is contained in:
commit
dbe920a67b
2 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ angular
|
||||||
// Detect some merchant that we know
|
// Detect some merchant that we know
|
||||||
if (payProData.memo.indexOf('eGifter') > -1) {
|
if (payProData.memo.indexOf('eGifter') > -1) {
|
||||||
name = 'eGifter'
|
name = 'eGifter'
|
||||||
} else if (paymentUrl.indexOf('https://bitpay.com') > -1) {
|
} else if (payProData.url.indexOf('https://bitpay.com') > -1) {
|
||||||
name = 'BitPay';
|
name = 'BitPay';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ var ShapeShift = (function() {
|
||||||
var parsedResponse = JP(xmlhttp.responseText);
|
var parsedResponse = JP(xmlhttp.responseText);
|
||||||
cb.apply(null, [parsedResponse]);
|
cb.apply(null, [parsedResponse]);
|
||||||
} else {
|
} else {
|
||||||
cb.apply(null, [new Error('Request Failed')])
|
cb.apply(null, [new Error('Request Failed')]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue