handle 500 errors on tip better
This commit is contained in:
parent
e4d7e4f69d
commit
c3bc342eef
1 changed files with 2 additions and 1 deletions
|
@ -297,7 +297,8 @@ function WalletSendTip(props: Props) {
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
var displayError = 'Sorry, there was an error in processing your payment!';
|
var displayError = 'Sorry, there was an error in processing your payment!';
|
||||||
|
|
||||||
if (error.message !== 'payment intent failed to confirm') {
|
// if it's not an error we're expecting then show it to frontend
|
||||||
|
if (error.message && error.message !== 'payment intent failed to confirm') {
|
||||||
displayError = error.message;
|
displayError = error.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue