Merge branch 'epe-short-path' into 'develop'
Epe short path See merge request witapp/aura-webapp!80
This commit is contained in:
commit
79966d3b4e
@ -104,6 +104,14 @@ export const useSinglePayment = () => {
|
|||||||
if (isPurchased && productUrls[targetProductKey]?.length) {
|
if (isPurchased && productUrls[targetProductKey]?.length) {
|
||||||
return navigate(productUrls[targetProductKey]);
|
return navigate(productUrls[targetProductKey]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let _gender = "male";
|
||||||
|
if (gender.length) {
|
||||||
|
_gender = gender;
|
||||||
|
}
|
||||||
|
if (user.profile.gender?.length) {
|
||||||
|
_gender = user.profile.gender;
|
||||||
|
}
|
||||||
const paymentIntent = await api.createSinglePayment({
|
const paymentIntent = await api.createSinglePayment({
|
||||||
token,
|
token,
|
||||||
data: {
|
data: {
|
||||||
@ -115,7 +123,7 @@ export const useSinglePayment = () => {
|
|||||||
user?.profile?.sign?.sign ||
|
user?.profile?.sign?.sign ||
|
||||||
getZodiacSignByDate(user.profile.birthday || birthday || ""),
|
getZodiacSignByDate(user.profile.birthday || birthday || ""),
|
||||||
age: user?.profile?.age?.years || 1,
|
age: user?.profile?.age?.years || 1,
|
||||||
gender: user.profile.gender || gender || "",
|
gender: _gender,
|
||||||
},
|
},
|
||||||
partner: {
|
partner: {
|
||||||
sign: null,
|
sign: null,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user