woocommerce/plugins/woocommerce-blocks/assets/js/data/payment/test
Tarun Vijwani 7528a7d65e
Fix removal of express payment method from state (#44633)
* Fix removal of express payment method from state

- Correct the logic for removing an express payment method from the availableExpressPaymentMethods state object.
- Previously, the deletion targeted the incorrect object, leading to incorrect change in state. Now, the correct entry is removed using destructuring and rest parameters, ensuring the express payment method is properly deleted.

* Revert "Fix removal of express payment method from state"

This reverts commit 8e24553794.

* Fix typo error in the reducer

* Add unit to make sure correct express payment method is removed

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Remove payment method descriptions from express and fix changelog

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-02-16 23:00:42 +04:00
..
actions.ts Move payment utils and delete orderPaymentMethods (https://github.com/woocommerce/woocommerce-blocks/pull/7679) 2022-11-16 09:38:48 +00:00
check-payment-methods.tsx Checkout - Available Payment Method Filtering (https://github.com/woocommerce/woocommerce-blocks/pull/8441) 2023-03-13 10:29:17 +00:00
reducers.js Fix removal of express payment method from state (#44633) 2024-02-16 23:00:42 +04:00
selectors.js Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
set-default-payment-method.ts Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
thunks.tsx Rename the checkout events (https://github.com/woocommerce/woocommerce-blocks/pull/8381) 2023-02-17 11:03:13 +00:00