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/components/ModelSelect.tsx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

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

diff --git a/extension/react-app/src/components/ModelSelect.tsx b/extension/react-app/src/components/ModelSelect.tsx
index 29d9250e..9dd3f489 100644
--- a/extension/react-app/src/components/ModelSelect.tsx
+++ b/extension/react-app/src/components/ModelSelect.tsx
@@ -144,14 +144,14 @@ const NewProviderDiv = styled.div`
 `;
 
 function modelSelectTitle(model: any): string {
-  if (model.title) return model.title;
-  if (model.model !== undefined && model.model.trim() !== "") {
-    if (model.class_name) {
-      return `${model.class_name} - ${model.model}`;
+  if (model?.title) return model?.title;
+  if (model?.model !== undefined && model?.model.trim() !== "") {
+    if (model?.class_name) {
+      return `${model?.class_name} - ${model?.model}`;
     }
-    return model.model;
+    return model?.model;
   }
-  return model.class_name;
+  return model?.class_name;
 }
 
 function ModelSelect(props: {}) {
-- 
cgit v1.2.3-70-g09d2

