Merge branch 'preview/email-pay-email' into 'develop'

Revert "fix: remove double image key and update filter of subscription plans"

See merge request witapp/aura-webapp!66
This commit is contained in:
Daniil Chemerkin 2024-04-02 23:46:48 +00:00
commit 9a97167e49
3 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@ export interface PayloadPost extends Payload {
name: string;
sign: string;
age: number;
gender?: string;
};
partner: {
sign: string | null;

View File

@ -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`);

View File

@ -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",