aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-01-29 15:44:07 -0500
committerbobzel <zzzman@gmail.com>2025-01-29 15:44:07 -0500
commit573a052cc4778ef4df53e9911db07e998df06281 (patch)
treeaf4a1498dbef95d8729da0ae1ea82bcf4d352c1c /src
parent45aa1b54ab37d821257fb00b3be5ef5eca03ef2c (diff)
fixing card quiz mode
Diffstat (limited to 'src')
-rw-r--r--src/client/views/pdf/GPTPopup/GPTPopup.tsx4
1 files changed, 2 insertions, 2 deletions
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<object> {
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<object> {
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);