FIX: Single subscription was not correctly selected

This commit is contained in:
Justin DiRose 2020-08-03 10:31:21 -05:00
parent a1a7ca98a3
commit 739296bc72
No known key found for this signature in database
GPG Key ID: 4B811FB264021800

View File

@ -1,7 +1,7 @@
import Component from "@ember/component"; import Component from "@ember/component";
export default Component.extend({ export default Component.extend({
init() { didInsertElement() {
this._super(...arguments); this._super(...arguments);
if (this.plans && this.plans.length === 1) { if (this.plans && this.plans.length === 1) {
this.set("selectedPlan", this.plans[0].id); this.set("selectedPlan", this.plans[0].id);