Skip to content

Commit 6e7fb71

Browse files
docs: write comments on TODO
1 parent 0c5a403 commit 6e7fb71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/tutorial-quiz.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Cinzel } from "next/font/google";
44
import { useState } from "react";
55
import { QuizData } from "@/lib/types/types";
66
import { createClient } from "@/lib/supabase/client";
7-
// Idk if to use from server, or client
87

98
const cinzel = Cinzel({ subsets: ["latin"], weight: ["700"] });
109

@@ -58,6 +57,8 @@ export default function Quiz({ quizData }: QuizProps) {
5857
};
5958

6059
// Updates database that user completed quiz, no score to keep things simple
60+
// TODO: Update the insert with a upsert, and keep track of the user's most recent score on quiz
61+
// Also another neat feature would be loading the quiz result instead of resetting the quiz each time
6162
const updateUserQuizProgress = async () => {
6263
const supabase = createClient();
6364

0 commit comments

Comments
 (0)