diff --git a/website/server/models/group.js b/website/server/models/group.js index 45ea6bc73f..c311b8d3b9 100644 --- a/website/server/models/group.js +++ b/website/server/models/group.js @@ -1677,7 +1677,7 @@ schema.methods.hasNotCancelled = function hasNotCancelled () { return Boolean(this.hasActiveGroupPlan() && !plan.dateTerminated); }; -schema.methods.hasCancelled = function hasNotCancelled () { +schema.methods.hasCancelled = function hasCancelled () { const { plan } = this.purchased; return Boolean(this.hasActiveGroupPlan() && plan.dateTerminated); };