publish: inclusive group check for new groups

because the path starts /ship/, this check will always fail

we update for post-groups paths
This commit is contained in:
Matilde Park 2020-07-23 22:39:09 -04:00
parent 0cd5f143ce
commit 70b0c66df1

View File

@ -133,7 +133,7 @@ export class Settings extends Component {
// don't give the option to make inclusive if we don't own the target
// group
const targetOwned = (state.targetGroup)
? state.targetGroup.slice(0, window.ship.length+3) === `/~${window.ship}/`
? Boolean(state.targetGroup.includes(`/~${window.ship}/`))
: false;
let inclusiveToggle = <div />;
if (targetOwned) {