X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;h=2867dab55c1873f97f79650f2774879c80ff8c11;hp=ab45be913f109e782349529af805f8edd82105e1;hb=746e9ae5db16b40b47ef7669fcba6de2229e9eea;hpb=00002a9f80dae904c1629f2d0b06d2acc89e94bf diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index ab45be9..2867dab 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -366,10 +366,6 @@ class CategoryRequest extends React.PureComponent { const PromptOption = React.memo(props => { const prompt = props.prompt; - const [show_prompt, set_show_prompt] = React.useState(true); - - if (! show_prompt) - return false; if (prompt.votes_against.find(v => v === props.player.name)) return false; @@ -385,7 +381,6 @@ const PromptOption = React.memo(props => { onClick={(event) => { event.stopPropagation(); fetch_post_json(`vote_against/${prompt.id}`); - set_show_prompt(false); }} > × @@ -1160,8 +1155,8 @@ class Game extends React.PureComponent {