From 83b0417f6c8c579d0ea5a0f689eceb822fe7a04d Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Tue, 26 Sep 2023 12:33:15 -0700
Subject: fix: :ambulance: class_name hotfix

---
 extension/react-app/src/pages/gui.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'extension/react-app/src/pages/gui.tsx')

diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx
index 96526d6d..a93ca9a0 100644
--- a/extension/react-app/src/pages/gui.tsx
+++ b/extension/react-app/src/pages/gui.tsx
@@ -288,8 +288,8 @@ function GUI(props: GUIProps) {
       }
 
       if (
-        defaultModel.class_name === "OpenAIFreeTrial" &&
-        defaultModel.api_key === "" &&
+        defaultModel?.class_name === "OpenAIFreeTrial" &&
+        defaultModel?.api_key === "" &&
         (!input.startsWith("/") || input.startsWith("/edit"))
       ) {
         const ftc = localStorage.getItem("ftc");
-- 
cgit v1.2.3-70-g09d2

