Skip to content

Commit 73ce72e

Browse files
authored
Merge pull request #87 from ut-code/fix/TestPlay9
TestPlayに闘技場登録していないユーザーが追加される問題を修正
2 parents 16d9166 + 1c6c775 commit 73ce72e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/web/src/component/TestPlay.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ 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.filter((user) => typeof user.program === "string")
186+
);
185187
const copy = response
186188
.filter((user) => user.id !== currentUser.id)
187189
.slice();

0 commit comments

Comments
 (0)