Skip to content

Commit f1a6abf

Browse files
fix: lint errors
1 parent 848d249 commit f1a6abf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/Board/GameClock.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ export const GameClock: React.FC<Props> = (
1313
props: React.PropsWithChildren<Props>,
1414
) => {
1515
const { user } = useContext(AuthContext)
16-
const { player, toPlay, whiteClock, blackClock, lastMoveTime, maiaVersion } = useContext(
17-
PlayControllerContext,
18-
)
16+
const { player, toPlay, whiteClock, blackClock, lastMoveTime, maiaVersion } =
17+
useContext(PlayControllerContext)
1918

2019
const [referenceTime, setReferenceTime] = useState<number>(Date.now())
2120

@@ -57,7 +56,9 @@ export const GameClock: React.FC<Props> = (
5756
>
5857
<div className="px-4 py-2">
5958
{props.player === 'black' ? '●' : '○'}{' '}
60-
{player === props.player ? user?.displayName : getMaiaDisplayName(maiaVersion)}
59+
{player === props.player
60+
? user?.displayName
61+
: getMaiaDisplayName(maiaVersion)}
6162
</div>
6263
<div className="inline-flex self-start px-4 py-2 md:text-3xl">
6364
{minutes}:{('00' + seconds).slice(-2)}

0 commit comments

Comments
 (0)