selectAppropriateDefaultPlan() {
            if (this.monthlyPlans.length == 0 && this.yearlyPlans.length > 0) {
                this.showYearlyPlans();
            }

            if (this.query.plan && ! this.selectPlanById(this.query.plan)) {
                this.selectPlanByName(this.query.plan)
            } else if (this.query.invitation) {
                this.selectFreePlan();
            } else if (this.paidPlansForActiveInterval.length > 0) {
                this.selectPlan(this.paidPlansForActiveInterval[0]);
            } else {
                this.selectFreePlan();
            }
        }
/**
         * Select the appropriate default plan for registration.
         */
Select the appropriate default plan for registration.
Select the appropriate default plan for registration .
selectAppropriateDefaultPlan() {
            if (this.monthlyPlans.length == 0 && this.yearlyPlans.length > 0) {
                this.showYearlyPlans();
            }
            if (this.query.plan && ! this.selectPlanById(this.query.plan)) {
                this.selectPlanByName(this.query.plan)
            } else if (this.query.invitation) {
                this.selectFreePlan();
            } else if (this.paidPlansForActiveInterval.length > 0) {
                this.selectPlan(this.paidPlansForActiveInterval[0]);
            } else {
                this.selectFreePlan();
            }
        }
selectAppropriateDefaultPlan ( ) { if ( this . monthlyPlans . length == 0 && this . yearlyPlans . length > 0 ) { this . showYearlyPlans ( ) ; } if ( this . query . plan && ! this . selectPlanById ( this . query . plan ) ) { this . selectPlanByName ( this . query . plan ) } else if ( this . query . invitation ) { this . selectFreePlan ( ) ; } else if ( this . paidPlansForActiveInterval . length > 0 ) { this . selectPlan ( this . paidPlansForActiveInterval [ 0 ] ) ; } else { this . selectFreePlan ( ) ; } }
Select the appropriate default plan for registration.
Select the appropriate default plan for registration .