Skip to content

Commit

Permalink
Fixed exception that would happen when pre_check_save_my_info was not…
Browse files Browse the repository at this point in the history
… in the cached $account_data (#8721)
  • Loading branch information
leonardola authored Apr 26, 2024
1 parent 0c1f6c0 commit ba36a35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/fix-pre-check-sve-my-info-exception
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: just a bug fix for a feature that did not make into the release yet


2 changes: 1 addition & 1 deletion includes/woopay-user/class-woopay-save-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function register_checkout_page_scripts() {
'WCPAY_WOOPAY',
'woopayCheckout',
[
'PRE_CHECK_SAVE_MY_INFO' => $account_data['pre_check_save_my_info']
'PRE_CHECK_SAVE_MY_INFO' => isset( $account_data['pre_check_save_my_info'] ) ? $account_data['pre_check_save_my_info'] : false,
]
);

Expand Down

0 comments on commit ba36a35

Please sign in to comment.