aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authoralyssaf16 <alyssa_feinberg@brown.edu>2024-10-08 10:49:31 -0400
committeralyssaf16 <alyssa_feinberg@brown.edu>2024-10-08 10:49:31 -0400
commitcaceff7f37b4e49621bc3495bf1d51fcc3a79957 (patch)
tree78b742655d8b362f78f23a54ab55a4b1c3db92ae /src/client/views/pdf/PDFViewer.tsx
parenta606005a5934913c38fba9b73886ee6e743aa635 (diff)
parentfc3e2b18b9dad38920e1cec5e58bf9fbd06f4aaf (diff)
Merge branch 'alyssa-starter' of https://github.com/brown-dash/Dash-Web into alyssa-starter
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 18db214c8..358557ad7 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -402,8 +402,6 @@ export class PDFViewer extends ObservableReactComponent<IViewerProps> {
const queryText = this._selectionText;
this._loading = true;
try {
- if (this._selectionText === '') {
- }
const res = await gptAPICall(queryText, GPTCallType.FLASHCARD);
AnchorMenu.Instance.transferToFlashcard(res || 'Something went wrong', NumCast(this._props.layoutDoc['x']), NumCast(this._props.layoutDoc['y']));