fix(challenges): check if subscribed only when in group

This commit is contained in:
Matteo Pagliazzi 2019-04-07 15:57:11 +02:00
parent fc5f6a31ee
commit 128bd4b9cd

View file

@ -308,7 +308,7 @@ export default {
return this.members.length < this.$store.state.memberModalOptions.memberCount;
},
groupIsSubscribed () {
return this.group.purchased.active;
return this.group.purchased && this.group.purchased.active;
},
group () {
return this.$store.state.memberModalOptions.group;