diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index a99076d..f590220 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -568,7 +568,7 @@ export default (props: { $ USD - {props.chatStore.cost.toFixed(4)} + {props.chatStore.cost?.toFixed(4)} diff --git a/src/components/StatusBar.tsx b/src/components/StatusBar.tsx index 30f52bd..f7ab2b1 100644 --- a/src/components/StatusBar.tsx +++ b/src/components/StatusBar.tsx @@ -59,7 +59,7 @@ const StatusBar = (props: {
- Cost: ${chatStore.cost.toFixed(4)} / $ + Cost: ${chatStore.cost?.toFixed(4)} / $ {getTotalCost().toFixed(2)}
@@ -351,7 +351,7 @@ export function App() {