billing: Clean up overly long event_status strings.

The "would be redirected" isn't proper American English grammar too.
This commit is contained in:
Tim Abbott
2023-11-20 11:15:23 -08:00
parent e3a3f36225
commit d404febb29

View File

@@ -51,13 +51,11 @@ function handle_session_complete_event(session: StripeSession): void {
let redirect_to = "";
switch (session.type) {
case "card_update_from_billing_page":
message =
"Your card has been updated. You would be redirected to the billing page soon.";
message = "Card successfully updated! Returning to billing…";
redirect_to = "/billing#payment-method";
break;
case "card_update_from_upgrade_page":
message =
"Your card has been updated. You would be redirected to the upgrade page soon.";
message = "Card successfully added! Returning to billing…";
redirect_to = "/upgrade/";
break;
}