Skip to content

Commit

Permalink
Fixes an error when no payment gateways are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Aug 15, 2023
1 parent 45183ce commit bab36d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Yes! Pagespeed is one of our main focus points, and we strive to make the plugin
Enhancements:

Bugfixes:
* Fixes an error when no payment gateways are defined.

Other:

Expand Down
2 changes: 1 addition & 1 deletion src/Integration/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function get_global_data( array $global_data ): array {
return $global_data;
}

private function get_payment_method(): string {
private function get_payment_method(): ?string {

$payment_method = WC()->session->get( 'chosen_payment_method' );

Expand Down

0 comments on commit bab36d8

Please # to comment.