mirror of https://github.com/zulip/zulip.git
upgrade: Only show generic help error text for card errors.
This commit is contained in:
parent
15d92225fd
commit
0ef78c793e
|
@ -101,11 +101,14 @@ export const initialize = (): void => {
|
|||
helpers.redirect_to_billing_with_successful_upgrade();
|
||||
}
|
||||
},
|
||||
() => {
|
||||
(xhr) => {
|
||||
$("#org-upgrade-button-text").show();
|
||||
$("#org-upgrade-button .upgrade-button-loader").hide();
|
||||
const error_text = $error_box.text();
|
||||
$error_box.text(`${error_text} Please fix this issue or use a different card.`);
|
||||
// Add a generic help text for card errors.
|
||||
if (xhr.responseJSON.error_description === "card error") {
|
||||
const error_text = $error_box.text();
|
||||
$error_box.text(`${error_text} Please fix this issue or use a different card.`);
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue