♻️ Rename selector to prepare changes

This commit is contained in:
Philipp Stracker 2025-02-20 18:32:57 +01:00
parent 3d037fde27
commit c3a81434c4
No known key found for this signature in database
2 changed files with 31 additions and 9 deletions

View file

@ -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 } =