mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
♻️ Rename selector to prepare changes
This commit is contained in:
parent
3d037fde27
commit
c3a81434c4
2 changed files with 31 additions and 9 deletions
|
@ -25,7 +25,8 @@ export const flags = ( state ) => {
|
|||
};
|
||||
|
||||
/**
|
||||
* Returns the products that we use for the production login link in the last onboarding step.
|
||||
* Returns details about products and capabilities to use for the production login link in
|
||||
* the last onboarding step.
|
||||
*
|
||||
* This selector does not return state-values, but uses the state to derive the products-array
|
||||
* that should be returned.
|
||||
|
@ -33,7 +34,7 @@ export const flags = ( state ) => {
|
|||
* @param {{}} state
|
||||
* @return {string[]} The ISU products, based on choices made in the onboarding wizard.
|
||||
*/
|
||||
export const determineProducts = ( state ) => {
|
||||
export const determineProductsAndCaps = ( state ) => {
|
||||
const derivedProducts = [];
|
||||
|
||||
const { isCasualSeller, areOptionalPaymentMethodsEnabled } =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue