Fix typo with Stripe card error handling

This commit is contained in:
Skylar Ittner 2025-05-21 21:20:19 -06:00
parent 31e35184f0
commit 73cdf2a54e

View File

@ -191,13 +191,13 @@ $("#registrationform").on("submit", function (event) {
stripe.createToken(card).then(function (result) {
if (result.error) {
// Inform the customer that there was an error.
stripe_finished = true;
stripe_timeout = false;
$("#card-errors").removeClass("d-none");
$("#card-errors").text(event.error.message);
$("#card-errors").text(result.error.message);
$("#savebutton").prop("disabled", false);
$("#savebutton-text").removeClass("d-none");
$("#savebutton-wait").addClass("d-none");
stripe_finished = true;
stripe_timeout = false;
} else {
stripe_finished = true;
if (stripe_timeout) {