diff --git a/client/src/pages/game.tsx b/client/src/pages/game.tsx index e1ec83f..c4fb42a 100644 --- a/client/src/pages/game.tsx +++ b/client/src/pages/game.tsx @@ -596,13 +596,7 @@ export function Game() { detect()?.name === "firefox" ? canSkip() ? `${t("skipHitShortcut")} ${t("skipHit")}` - : game.players.find((p) => p.id === user?.id) - ?.state === PlayerState.Guessing - ? t("skipHitNotGuessing") - : game.players.find((p) => p.id === user?.id) - ?.tokens === 0 - ? t("skipHitNoToken") - : t("cannotSkipHit") + : "" : "" } onClick={skipHit} diff --git a/client/src/pages/game/hit-player.tsx b/client/src/pages/game/hit-player.tsx index c9969db..11f1528 100644 --- a/client/src/pages/game/hit-player.tsx +++ b/client/src/pages/game/hit-player.tsx @@ -170,8 +170,10 @@ export const HitPlayer = forwardRef( disabled={src === ""} aria-keyshortcuts={shortcut !== undefined ? shortcut : ""} aria-label={ - detect()?.name === "firefox" && shortcut !== undefined - ? shortcut + detect()?.name === "firefox" && + shortcut !== undefined && + src !== "" + ? `${shortcut} ${playing ? t("stopHit") : t("playHit")}` : "" } onClick={() => {