aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
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);