Skip to content

Commit 6dfe577

Browse files
committed
TestPlayに闘技場登録していないユーザーが追加される問題を修正
1 parent 85843ba commit 6dfe577

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/web/src/component/TestPlay.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ export default function TestPlay(props: TestPlayProps) {
181181

182182
useEffect(() => {
183183
const fetchUsers = async () => {
184-
const response = await getUsers();
184+
const response = await getUsers().then((rawUsers) =>
185+
rawUsers
186+
.filter((user) => typeof user.program === "string")
187+
);
185188
const copy = response
186189
.filter((user) => user.id !== currentUser.id)
187190
.slice();

0 commit comments

Comments
 (0)