Skip to content

Commit

Permalink
fix(ras-acc): account for null data
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenn00dle committed Feb 5, 2024
1 parent 572e530 commit 4949fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/reader-activation-auth/auth-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ window.newspackRAS.push( function ( readerActivation ) {
}
} else {
let labels = newspack_reader_auth_labels.signin;
if ( data.registered ) {
if ( data?.registered ) {
labels = newspack_reader_auth_labels.register;
}
container.setFormAction( 'success' );
Expand Down

0 comments on commit 4949fdc

Please sign in to comment.