Commit 7e6cb0ea authored by Chunchi Che's avatar Chunchi Che

update WaitRoom.tsx

parent c53d5c21
Pipeline #23011 passed with stages
in 14 minutes and 19 seconds
......@@ -136,24 +136,28 @@ export const Component: React.FC = () => {
)
}
/>
<PlayerZone
who={Who.Op}
player={op}
btn={
room.stage === RoomStage.WAITING ? (
<></>
) : (
<MoraAvatar
mora={
op?.moraResult !== undefined &&
op.moraResult !== HandType.UNKNOWN
? Object.values(Mora)[op.moraResult - 1]
: undefined
}
/>
)
}
/>
{room.players
.filter((player) => player !== undefined && !player.isMe)
.map((player) => (
<PlayerZone
who={Who.Op}
player={player}
btn={
room.stage === RoomStage.WAITING ? (
<></>
) : (
<MoraAvatar
mora={
op?.moraResult !== undefined &&
op.moraResult !== HandType.UNKNOWN
? Object.values(Mora)[op.moraResult - 1]
: undefined
}
/>
)
}
/>
))}
</div>
<ActionButton
onMoraSelect={(mora) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment