File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { Cinzel } from "next/font/google";
44import { useState } from "react" ;
55import { QuizData } from "@/lib/types/types" ;
66import { createClient } from "@/lib/supabase/client" ;
7- // Idk if to use from server, or client
87
98const 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
You can’t perform that action at this time.
0 commit comments