Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -28,7 +28,7 @@ const Ready: React.FC<ReadyProps> = ({ users }) => { | ... | @@ -28,7 +28,7 @@ const Ready: React.FC<ReadyProps> = ({ users }) => { |
| 28 | var test = users.length > 1; | 28 | var test = users.length > 1; |
| 29 | users.forEach(x => test = test && (x.ready || x.admin)); | 29 | users.forEach(x => test = test && (x.ready || x.admin)); |
| 30 | setIsAllReady(test); | 30 | setIsAllReady(test); |
| 31 | - }, [users, location.state.username]); | 31 | + }); |
| 32 | 32 | ||
| 33 | const handleReady = useCallback(() => { | 33 | const handleReady = useCallback(() => { |
| 34 | if (isAdmin && isAllReady) { | 34 | if (isAdmin && isAllReady) { | ... | ... |
-
Please register or login to post a comment