Skip to content

Commit

Permalink
fix: shake
Browse files Browse the repository at this point in the history
  • Loading branch information
tntons committed Mar 28, 2024
1 parent 64fb788 commit 596a82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/(user)/shake/[university]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function Shake() {
setCount(prevCount => {
const newCount = prevCount + 1;
if (socket?.connected) {
socket.emit("submit", `${university} ${count}`);
socket.emit("submit", `${university} ${newCount}`);
}
return newCount;
});
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Shake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function ShakeComponent({
<Image src={university == 'cu' ? "../shake/chula-logo.svg" : "../shake/tu-logo.svg"} alt="chula-logo" width={65} height={104} ></Image>
<h1 className="font-bold">{university == 'cu' ? '#ทีมจุฬาฯ' : '#ทีมมธ.'}</h1>
<p>ร่วมส่งพลังให้ทีมที่คุณเชียร์!</p>
<div onClick={() => {setIsClicked(true); onClick;}}>
<div onClick={() => { onClick(); setIsClicked(true);}}>
{isClicked ? (
<Image src="../shake/pink-shake.svg" alt="pink-shake-icon" width={150} height={150}></Image>
) : (
Expand Down

0 comments on commit 596a82a

Please sign in to comment.