Merge branch 'hotfix/fix-trialDuration' into 'develop'
Hotfix/fix trial duration See merge request witapp/aura-webapp!229
This commit is contained in:
commit
939b5003b9
@ -151,7 +151,7 @@ function PaymentModal({
|
||||
You will be charged only{" "}
|
||||
<b>
|
||||
${getPrice(_activeProduct)} for your{" "}
|
||||
{_activeProduct.trialDuration}-day trial.
|
||||
{_activeProduct?.trialDuration}-day trial.
|
||||
</b>
|
||||
</p>
|
||||
<p className={styles["sub-plan-description"]}>
|
||||
|
||||
@ -108,8 +108,8 @@ function TrialChoicePage() {
|
||||
replacement: {
|
||||
target: "${trialDuration}",
|
||||
replacement:
|
||||
activeProduct?.trialDuration.toString() ||
|
||||
products[0].trialDuration.toString() ||
|
||||
activeProduct?.trialDuration?.toString() ||
|
||||
products[0]?.trialDuration?.toString() ||
|
||||
"3",
|
||||
},
|
||||
})}
|
||||
|
||||
@ -87,7 +87,7 @@ function PaymentTable({
|
||||
<GuardPayments />
|
||||
<p className={styles.policy}>
|
||||
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 $
|
||||
{product.price / 100}{" "}
|
||||
every 2 weeks until you cancel in settings. Learn more about
|
||||
|
||||
Loading…
Reference in New Issue
Block a user