mirror of https://github.com/bra1n/townsquare.git
Changing the clearRoles mutator to preserve the player pronouns when clearing all roles as a storyteller.
This commit is contained in:
parent
8ed78b722e
commit
8ea11c8f9e
|
@ -80,10 +80,11 @@ const actions = {
|
||||||
return player;
|
return player;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
players = state.players.map(({ name, id }) => ({
|
players = state.players.map(({ name, id, pronouns }) => ({
|
||||||
...NEWPLAYER,
|
...NEWPLAYER,
|
||||||
name,
|
name,
|
||||||
id
|
id,
|
||||||
|
pronouns
|
||||||
}));
|
}));
|
||||||
commit("setFabled", { fabled: [] });
|
commit("setFabled", { fabled: [] });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue