From 17212a989afff0f36e11c45c31e34e2850909ab7 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sat, 18 Sep 2021 23:58:25 -0400 Subject: [PATCH] notes --- src/games/GameCore.tsx | 1 + src/games/GameDisplay.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/games/GameCore.tsx b/src/games/GameCore.tsx index 63e9c2a..f95c278 100644 --- a/src/games/GameCore.tsx +++ b/src/games/GameCore.tsx @@ -57,6 +57,7 @@ function GameCore({ questions, Display, timeLimit, Instructions, studyLink, i id, }; console.log("will post result", JSON.stringify(result)); + // TODO: Check not showing up - should show up immediately whether online or not postTestResults([result]) .then((res) => { if (res.ok) { diff --git a/src/games/GameDisplay.tsx b/src/games/GameDisplay.tsx index 7143fbb..726f263 100644 --- a/src/games/GameDisplay.tsx +++ b/src/games/GameDisplay.tsx @@ -4,6 +4,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) )); return