MCPcopy Create free account
hub / github.com/code100x/chess / getPlayerName

Function getPlayerName

apps/frontend/src/components/GameEndModal.tsx:67–69  ·  view source on GitHub ↗
(player: { id: string; name: string } | undefined)

Source from the content-addressed store, hash-verified

65 };
66
67 const getPlayerName = (player: { id: string; name: string } | undefined) => {
68 return player ? player.name : 'Unknown';
69 };
70
71 return (
72 <div>

Callers 1

PlayerDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected