From fa2b150fcccef8df17a4e199767dc6d643a9c16c Mon Sep 17 00:00:00 2001
From: alyssaf16 <alyssa_feinberg@brown.edu>
Date: Sun, 17 Mar 2024 14:23:08 -0400
Subject: menu working

---
 src/client/views/nodes/ComparisonBox.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/client/views/nodes/ComparisonBox.tsx')

diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx
index 97b9a8744..9caa216a5 100644
--- a/src/client/views/nodes/ComparisonBox.tsx
+++ b/src/client/views/nodes/ComparisonBox.tsx
@@ -189,7 +189,11 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps>()
                 className="formattedTextBox-alternateButton"
                 onPointerDown={e =>
                     setupMoveUpEvents(e.target, e, returnFalse, emptyFunction, e => {
-                        this.flipFlashcard();
+                        if (!this.layoutDoc[`_${this._props.fieldKey}_revealOp`] || this.layoutDoc[`_${this._props.fieldKey}_revealOp`] == 'flip') {
+                            this.layoutDoc[`_${this._props.fieldKey}_revealOp`] = 'flip';
+                            console.log(this.layoutDoc[`_${this._props.fieldKey}_revealOp`]);
+                            this.flipFlashcard();
+                        }
                     })
                 }
                 style={{
-- 
cgit v1.2.3-70-g09d2

