hotfix-fix-trialDuration
This commit is contained in:
parent
20b506d149
commit
6fbba9ba99
@ -151,7 +151,7 @@ function PaymentModal({
|
|||||||
You will be charged only{" "}
|
You will be charged only{" "}
|
||||||
<b>
|
<b>
|
||||||
${getPrice(_activeProduct)} for your{" "}
|
${getPrice(_activeProduct)} for your{" "}
|
||||||
{_activeProduct.trialDuration}-day trial.
|
{_activeProduct?.trialDuration}-day trial.
|
||||||
</b>
|
</b>
|
||||||
</p>
|
</p>
|
||||||
<p className={styles["sub-plan-description"]}>
|
<p className={styles["sub-plan-description"]}>
|
||||||
|
|||||||
@ -108,8 +108,8 @@ function TrialChoicePage() {
|
|||||||
replacement: {
|
replacement: {
|
||||||
target: "${trialDuration}",
|
target: "${trialDuration}",
|
||||||
replacement:
|
replacement:
|
||||||
activeProduct?.trialDuration.toString() ||
|
activeProduct?.trialDuration?.toString() ||
|
||||||
products[0].trialDuration.toString() ||
|
products[0]?.trialDuration?.toString() ||
|
||||||
"3",
|
"3",
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
|
|||||||
@ -87,7 +87,7 @@ function PaymentTable({
|
|||||||
<GuardPayments />
|
<GuardPayments />
|
||||||
<p className={styles.policy}>
|
<p className={styles.policy}>
|
||||||
You are enrolling in 2 weeks subscription. By continuing you agree that
|
You are enrolling in 2 weeks subscription. By continuing you agree that
|
||||||
if you don't cancel prior to the end of the {product.trialDuration}-day
|
if you don't cancel prior to the end of the {product?.trialDuration}-day
|
||||||
trial for the ${getPrice(product)} you will automatically be charged $
|
trial for the ${getPrice(product)} you will automatically be charged $
|
||||||
{product.price / 100}{" "}
|
{product.price / 100}{" "}
|
||||||
every 2 weeks until you cancel in settings. Learn more about
|
every 2 weeks until you cancel in settings. Learn more about
|
||||||
|
|||||||
@ -67,7 +67,7 @@ export const useAuthentication = () => {
|
|||||||
}, [partnerBirthdateFromForm, partnerBirthdateFromQuestionnaire, partnerBirthtime])
|
}, [partnerBirthdateFromForm, partnerBirthdateFromQuestionnaire, partnerBirthtime])
|
||||||
|
|
||||||
const formatDate = useCallback((date: string) => {
|
const formatDate = useCallback((date: string) => {
|
||||||
const _date = moment(date).format("YYYY-MM-DD HH:mm");
|
const _date = moment(new Date(date)).format("YYYY-MM-DD HH:mm");
|
||||||
if (_date === "Invalid date") {
|
if (_date === "Invalid date") {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user