-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 8e24553. * 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>
- Loading branch information
1 parent
ea50305
commit 7528a7d
Showing
3 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
plugins/woocommerce/changelog/44633-fix-available-express-payment-method-removal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: fix | ||
|
||
Fixed a bug where express payment methods could not be removed from the wc/store/payment data store. |