Revert "fix: remove double image key and update filter of subscription plans"
This commit is contained in:
parent
87a80598b0
commit
078ccc920e
@ -15,6 +15,7 @@ export interface PayloadPost extends Payload {
|
||||
name: string;
|
||||
sign: string;
|
||||
age: number;
|
||||
gender?: string;
|
||||
};
|
||||
partner: {
|
||||
sign: string | null;
|
||||
|
||||
@ -20,7 +20,7 @@ function GenderPage(): JSX.Element {
|
||||
|
||||
const selectGender = (gender: Gender) => {
|
||||
dispatch(actions.questionnaire.update({ gender: gender.id }));
|
||||
if (pathName === "/epe/gender") {
|
||||
if (pathName.includes("/epe/gender")) {
|
||||
return navigate(routes.client.epeBirthdate());
|
||||
}
|
||||
navigate(`/questionnaire/profile/flowChoice`);
|
||||
|
||||
@ -33,6 +33,7 @@ function PaymentWithEmailPage() {
|
||||
const timezone = getClientTimezone();
|
||||
const dispatch = useDispatch();
|
||||
const birthday = useSelector(selectors.selectBirthday);
|
||||
const { gender } = useSelector(selectors.selectQuestionnaire);
|
||||
const locale = i18n.language;
|
||||
const [email, setEmail] = useState("");
|
||||
const [name, setName] = useState("");
|
||||
@ -119,7 +120,7 @@ function PaymentWithEmailPage() {
|
||||
token,
|
||||
});
|
||||
const currentProduct = productsSinglePayment.find(
|
||||
(product) => product.key === "compatibility.pdf"
|
||||
(product) => product.key === "moons.pdf.aura"
|
||||
);
|
||||
return currentProduct;
|
||||
};
|
||||
@ -140,6 +141,7 @@ function PaymentWithEmailPage() {
|
||||
name: name || "",
|
||||
sign: user?.profile?.sign?.sign || getZodiacSignByDate(birthday),
|
||||
age: user?.profile?.age?.years || 1,
|
||||
gender: gender,
|
||||
},
|
||||
partner: {
|
||||
sign: "partner_cancer",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user