From 573a052cc4778ef4df53e9911db07e998df06281 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 29 Jan 2025 15:44:07 -0500 Subject: fixing card quiz mode --- src/client/views/pdf/GPTPopup/GPTPopup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 63130d056..da0cbea7a 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -158,7 +158,7 @@ export class GPTPopup extends ObservableReactComponent { const questionText = 'Question: ' + StrCast(selected.gptInputText); const rubricText = 'Rubric: ' + StrCast(selected.gptRubric); - const queryText = questionText + ' UserAnswer: ' + this.quizAnswer + '. ' + 'Rubric' + rubricText; + const queryText = questionText + ' UserAnswer: ' + this.quizAnswer + '. ' + rubricText; try { const res = await gptAPICall(queryText, GPTCallType.QUIZ); @@ -189,7 +189,7 @@ export class GPTPopup extends ObservableReactComponent { generateRubric = async (inputText: string, doc: Doc) => { try { const res = await gptAPICall(inputText, GPTCallType.RUBRIC); - doc['gptRubric'] = res; + doc.gptRubric = res; return res; } catch (err) { console.error('GPT call failed', err); -- cgit v1.2.3-70-g09d2