From 64b2715796da94415461b740f8cc5663944632ee Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Tue, 13 Jun 2023 23:45:49 -0700
Subject: Small fixes

---
 extension/react-app/src/components/TextDialog.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'extension/react-app/src/components/TextDialog.tsx')

diff --git a/extension/react-app/src/components/TextDialog.tsx b/extension/react-app/src/components/TextDialog.tsx
index 6b335e00..167e12cf 100644
--- a/extension/react-app/src/components/TextDialog.tsx
+++ b/extension/react-app/src/components/TextDialog.tsx
@@ -47,7 +47,15 @@ const TextDialog = (props: {
       <Dialog>
         <P>Thanks for your feedback. We'll get back to you soon!</P>
         <TextArea cols={50} rows={10} ref={textAreaRef}></TextArea>
-        <Button onClick={() => props.onEnter(text)}>Enter</Button>
+        <Button
+          onClick={() => {
+            if (textAreaRef.current) {
+              props.onEnter(textAreaRef.current.value);
+            }
+          }}
+        >
+          Enter
+        </Button>
       </Dialog>
     </DialogContainer>
   );
-- 
cgit v1.2.3-70-g09d2

