Disable revealed tiles

This commit is contained in:
zikaeroh 2020-05-24 22:26:45 -07:00
parent 54d0ec8f0a
commit 13d547622e
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ const Tile = ({ tile, onClick, spymaster, myTurn, winner }: TileProps) => {
className={classes.button} className={classes.button}
onClick={onClick} onClick={onClick}
style={tileStyle(tile, spymaster)} style={tileStyle(tile, spymaster)}
disabled={spymaster || !myTurn || winner} disabled={spymaster || !myTurn || winner || tile.revealed}
> >
<Typography variant="h6" className={classes.typo}> <Typography variant="h6" className={classes.typo}>
{tile.word} {tile.word}