Skip to content

Commit

Permalink
Disable friend button in navbar for specific game states
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Jan 11, 2025
1 parent 9d9e7e3 commit c0f0b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ui/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function Navbar({ maintenance, joinCodePress, inCrazyGames, inCoo
</span>
)}
<div className="navbar__right">
{session?.token?.secret && (
{session?.token?.secret && !["getready","guess"].includes(multiplayerState?.gameData?.state) && (
<button className="gameBtn friendBtn" onClick={onFriendsPress} disabled={ !multiplayerState?.connected }>
<FaUserFriends size={40}/>
</button>
Expand Down

0 comments on commit c0f0b4b

Please sign in to comment.