mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Merge branch 'develop' into sabrecat/teams-rebase
This commit is contained in:
@@ -257,6 +257,11 @@ export default {
|
||||
this.group = await this.$store.dispatch('guilds:getGroup', {
|
||||
groupId: this.searchId,
|
||||
});
|
||||
if (!this.group?.purchased?.active) {
|
||||
if (this.group.type === 'guild') this.$router.push(`/groups/guild/${this.group._id}`);
|
||||
if (this.group.type === 'party') this.$router.push('/party');
|
||||
return;
|
||||
}
|
||||
this.$store.dispatch('common:setTitle', {
|
||||
subSection: this.group.name,
|
||||
section: this.$route.path.startsWith('/group-plans') ? this.$t('groupPlans') : this.$t('group'),
|
||||
|
||||
Reference in New Issue
Block a user