Skip to content

Commit

Permalink
Add isAdmin check & fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed Dec 13, 2024
1 parent 346b986 commit 5d864d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-gateway-komoju-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function get_payment_method_script_handles()

public function get_payment_method_data()
{
if (!is_null(WC()->cart) && WC()->cart->is_empty()) {
if (!is_admin() && (is_null(WC()->cart) || WC()->cart->is_empty())) {
return;
}

Expand Down

0 comments on commit 5d864d7

Please sign in to comment.