fix JS error

This commit is contained in:
Daniel Hüsken 2025-02-06 10:20:18 +01:00
parent 606c1e27c0
commit 0ee4fc2326
No known key found for this signature in database
GPG key ID: 9F732DA37FA709E8

View file

@ -58,7 +58,9 @@ class CardFieldsRenderer {
},
onError( error ) {
console.error( error );
this.spinner.unblock();
if (this.spinner) {
this.spinner.unblock();
}
},
} );
@ -105,7 +107,9 @@ class CardFieldsRenderer {
}
cardFields.submit().catch( ( error ) => {
this.spinner.unblock();
if (this.spinner) {
this.spinner.unblock();
}
console.error( error );
this.errorHandler.message(
this.defaultConfig.hosted_fields.labels.fields_not_valid