Skip to content

Commit

Permalink
added error message if payment methods returns error
Browse files Browse the repository at this point in the history
  • Loading branch information
ignapas committed Feb 22, 2024
1 parent cd38037 commit 8fe3866
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,13 @@ qx.Class.define("osparc.desktop.paymentMethods.PaymentMethods", {
}
})
.finally(() => this.__fetchingMsg.setVisibility("excluded"))
.catch(err => console.error(err));
.catch(err => {
console.error(err)
osparc.FlashMessenger.getInstance().logAs(
this.tr("We could not retreive your saved payment methods. Please try again later."),
"ERROR"
);
});
},

__populatePaymentMethodsList: function(allPaymentMethods) {
Expand Down

0 comments on commit 8fe3866

Please sign in to comment.