Compare commits

...

1 commit

Author SHA1 Message Date
Anthony
c3bc342eef
handle 500 errors on tip better 2021-07-27 18:06:09 +02:00

View file

@ -297,7 +297,8 @@ function WalletSendTip(props: Props) {
.catch(function(error) {
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;
}