diff --git a/src/games/GameDisplay.tsx b/src/games/GameDisplay.tsx index 00b38cc..5daee9c 100644 --- a/src/games/GameDisplay.tsx +++ b/src/games/GameDisplay.tsx @@ -2,11 +2,7 @@ import { useUser } from "../user-context"; function GameDisplay({ record: { title, Game, id } }: { record: GameRecord }) { const { user } = useUser(); - const completed = user?.tests.some((t) => ( - // TODO: Or if it's in the locally stored (unposted test results) - (t.done === true) && (t.id === id) - )); - console.log({ id, completed, tests: user?.tests }); + const completed = user?.tests.some((t) => t.done && t.id === id); return