diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index 237fde568c..9652c2e5a7 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -551,10 +551,8 @@ function Footer({ const editDialogControl = useDialogControl() const {bottom: bottomInset} = useSafeAreaInsets() - const items = - state.currentStep === 'Profiles' - ? [...state.profiles.slice(1), state.profiles[0]] - : state.feeds + const items = state.currentStep === 'Profiles' ? state.profiles : state.feeds + const initialNamesIndex = state.currentStep === 'Profiles' ? 1 : 0 const isEditEnabled = (state.currentStep === 'Profiles' && items.length > 1) || @@ -623,26 +621,30 @@ function Footer({ ) : items.length === 1 ? ( - {getName(items[0])}{' '} + + {getName(items[initialNamesIndex])} + {' '} is included in your starter pack ) : items.length === 2 ? ( - {getName(items[0])}{' '} + {getName(items[initialNamesIndex])}{' '} and - {getName(items[1])} + + {getName(items[state.currentStep === 'Profiles' ? 0 : 1])}{' '} + are included in your starter pack ) : ( - {getName(items[0])},{' '} + {getName(items[initialNamesIndex])},{' '} - {getName(items[1])},{' '} + {getName(items[initialNamesIndex + 1])},{' '} and {items.length - 2}{' '} are