1 export const hasActiveGuessing = channel =>
2 channel && channel.guessing_start;
4 export const isAcceptingGuesses = channel =>
5 channel && channel.guessing_start && !channel.guessing_end;
7 export const patchGuess = (guesses, guess) =>
8 [guess, ...(guesses || []).filter(g => g.uid !== guess.uid)];
10 export const patchWinner = (winners, winner) =>
11 [winner, ...(winners || []).filter(w => w.uid !== winner.uid)];