Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alefesouza committed Sep 20, 2024
1 parent 85c7a5d commit f865f25
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions client/components/woopay/save-user/checkout-page-save-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => {
select( CHECKOUT_STORE_KEY ).isProcessing()
);

const { billingAddressPhone, isCustomerDataUpdating } = useSelect(
( select ) => {
const store = select( CART_STORE_KEY );
return {
billingAddressPhone: store.getCartData()?.billingAddress?.phone,
isCustomerDataUpdating: store.isCustomerDataUpdating(),
};
}
const billingAddressPhone = useSelect(
( select ) =>
select( CART_STORE_KEY ).getCartData()?.billingAddress?.phone
);

const isCustomerDataUpdating = useSelect( ( select ) =>
select( CART_STORE_KEY ).isCustomerDataUpdating()
);

const isRegisteredUser = useWooPayUser();
Expand Down

0 comments on commit f865f25

Please sign in to comment.