Spaces:
Sleeping
Sleeping
debug
Browse files
patches/src/components/PlayerDetails.tsx
CHANGED
@@ -50,7 +50,7 @@ export default function PlayerDetails({
|
|
50 |
);
|
51 |
|
52 |
const playerDescription = playerId && game.playerDescriptions.get(playerId);
|
53 |
-
|
54 |
const startConversation = useSendInput(engineId, 'startConversation');
|
55 |
const acceptInvite = useSendInput(engineId, 'acceptInvite');
|
56 |
const rejectInvite = useSendInput(engineId, 'rejectInvite');
|
@@ -227,7 +227,7 @@ export default function PlayerDetails({
|
|
227 |
<div className="desc my-6">
|
228 |
<p className="leading-tight -m-4 bg-brown-700 text-base sm:text-sm">
|
229 |
{!isMe && playerDescription?.description}
|
230 |
-
{isMe && <i>You are a {playerDescription}</i>}
|
231 |
{!isMe && inConversationWithMe && (
|
232 |
<>
|
233 |
<br />
|
|
|
50 |
);
|
51 |
|
52 |
const playerDescription = playerId && game.playerDescriptions.get(playerId);
|
53 |
+
console.log(playerDescription)
|
54 |
const startConversation = useSendInput(engineId, 'startConversation');
|
55 |
const acceptInvite = useSendInput(engineId, 'acceptInvite');
|
56 |
const rejectInvite = useSendInput(engineId, 'rejectInvite');
|
|
|
227 |
<div className="desc my-6">
|
228 |
<p className="leading-tight -m-4 bg-brown-700 text-base sm:text-sm">
|
229 |
{!isMe && playerDescription?.description}
|
230 |
+
{isMe && <i>You are a {playerDescription?.role}</i>}
|
231 |
{!isMe && inConversationWithMe && (
|
232 |
<>
|
233 |
<br />
|