diff --git a/src/components/screens/MatchmakingScreen.tsx b/src/components/screens/MatchmakingScreen.tsx index 9c8074a..31be958 100644 --- a/src/components/screens/MatchmakingScreen.tsx +++ b/src/components/screens/MatchmakingScreen.tsx @@ -22,9 +22,18 @@ export function MatchmakingScreen() { const goGame = useUIStore((s) => s.goGame); const go = useUIStore((s) => s.go); + const profile = useSessionStore((s) => s.profile); const ready = mm.phase === "ready"; const queued = mm.phase === "queued"; const searching = mm.phase === "searching"; + + // Always show yourself in the first seat while searching; fill the rest with + // whoever the server has matched so far (others), else empty "?" slots. + const me = profile + ? { id: profile.id, displayName: profile.displayName, avatar: profile.avatar, avatarImage: profile.avatarImage, level: profile.level } + : null; + const others = mm.players.filter((p) => p.id !== profile?.id); + const seated = [me, ...others].filter(Boolean).slice(0, 4); const slots = [0, 1, 2, 3]; // Elapsed seconds while searching (resets when the search (re)starts). @@ -132,7 +141,7 @@ export function MatchmakingScreen() {