We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5307cc7 commit e9da44dCopy full SHA for e9da44d
webview-ui/src/components/chat/TaskHeader.tsx
@@ -122,7 +122,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
122
}, [task.text, windowWidth])
123
124
const isCostAvailable = useMemo(() => {
125
- return totalCost > 0
+ return totalCost !== null && totalCost !== undefined && totalCost > 0 && !isNaN(totalCost)
126
}, [totalCost])
127
128
const shouldShowPromptCacheInfo = doesModelSupportPromptCache && apiConfiguration?.apiProvider !== "openrouter"
0 commit comments