Fixed default email recipients when visibility is members or paid

no issue

- since we reverted the post visibility changes, the visibility filter passed to `<GhMembersSegmentSelect>` was passing through `'members'` or `'paid'` which aren't known values
This commit is contained in:
Kevin Ansfield 2021-05-21 17:53:29 +01:00
parent 043f5751ea
commit 77bd0ab6f1

View File

@ -147,6 +147,14 @@ export default Component.extend({
return 'status:free,status:-free';
}
if (this.post.visibility === 'members') {
return 'status:free,status:-free';
}
if (this.post.visibility === 'paid') {
return 'status:-free';
}
return this.post.visibility;
}