Overnap

방장의 게임 시작 여부 검사가 잘못되던 문제 수정

......@@ -25,8 +25,8 @@ export const Ready: React.FC<ReadyProps> = ({ users }) => {
setIsAdmin(me?.admin || false);
setIsReady(me?.ready || false);
const test = true;
users.forEach(x => test && x.ready);
var test = users.length > 1;
users.forEach(x => test = test && (x.ready || x.admin));
setIsAllReady(test);
});
......@@ -47,7 +47,7 @@ export const Ready: React.FC<ReadyProps> = ({ users }) => {
}, [isAdmin, isReady, isAllReady]);
return (
<button className={`${isAdmin ? isAllReady ? 'bg-green-500' : 'bg-gray-400'
<button className={`${isAdmin ? isAllReady ? 'bg-green-500 active:bg-green-600' : 'bg-gray-400'
: isReady ? 'bg-green-600'
: 'bg-green-500 active:bg-green-600'}
text-white font-bold uppercase
......