Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
switch to nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
senadir committed Oct 21, 2021
1 parent f358e4c commit 4141e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StoreApi/Routes/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private function update_order_from_request( \WP_REST_Request $request ) {
$this->order->set_customer_note( $request['customer_note'] ?? '' );

$cart = $this->cart_controller->get_cart_instance();
$this->order->set_payment_method( $cart->needs_payment() ? $this->get_request_payment_method( $request ) : '' );
$this->order->set_payment_method( $request['payment_method'] ?? '' );

/**
* Fires when the Checkout Block/Store API updates an order's from the API request data.
Expand Down

0 comments on commit 4141e57

Please sign in to comment.