fix: remove double image key, filter subscription plans

This commit is contained in:
gofnnp 2024-03-22 23:45:25 +04:00
parent d11a52a9aa
commit 4deed550cd
2 changed files with 1 additions and 6 deletions

View File

@ -40,11 +40,6 @@ function QuestionnaireIntermediatePage() {
}} }}
> >
<object type="image/svg+xml" data={StaryKey}>svg-animation</object> <object type="image/svg+xml" data={StaryKey}>svg-animation</object>
<img
src="/starry_key.svg"
alt="The starry key"
style={{ minHeight: "138px" }}
/>
<div> <div>
{path && ( {path && (
<Title variant="h1" className={styles.title}> <Title variant="h1" className={styles.title}>

View File

@ -39,7 +39,7 @@ function TrialChoicePage() {
plansKeys[plan.name] = plansKeys[plan.name] plansKeys[plan.name] = plansKeys[plan.name]
? plansKeys[plan.name] + 1 ? plansKeys[plan.name] + 1
: 1; : 1;
if (plansKeys[plan.name] > 1 && !plan.trial?.is_free) { if (plansKeys[plan.name] > 1 && !plan.trial?.is_free && !!plan.trial) {
const targetPlan = plansWithoutTest.find( const targetPlan = plansWithoutTest.find(
(item) => item.name === plan.name && item.id.includes("stripe") (item) => item.name === plan.name && item.id.includes("stripe")
); );