mirror of
https://github.com/cline/cline.git
synced 2025-06-03 03:59:07 +00:00
Fix TypeError
This commit is contained in:
parent
0316f49f07
commit
26fb2780b5
@ -2,7 +2,7 @@
|
|||||||
"name": "claude-dev",
|
"name": "claude-dev",
|
||||||
"displayName": "Claude Dev",
|
"displayName": "Claude Dev",
|
||||||
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
|
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
|
||||||
"version": "1.3.1",
|
"version": "1.3.2",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.84.0"
|
"vscode": "^1.84.0"
|
||||||
|
@ -263,7 +263,7 @@ const ChatRow: React.FC<ChatRowProps> = ({
|
|||||||
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
|
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
|
||||||
{icon}
|
{icon}
|
||||||
{title}
|
{title}
|
||||||
{cost && <VSCodeBadge>${Number(cost).toFixed(4)}</VSCodeBadge>}
|
{cost && <VSCodeBadge>${Number(cost)?.toFixed(4)}</VSCodeBadge>}
|
||||||
</div>
|
</div>
|
||||||
<VSCodeButton
|
<VSCodeButton
|
||||||
appearance="icon"
|
appearance="icon"
|
||||||
|
@ -112,7 +112,7 @@ const HistoryPreview = ({ taskHistory, showHistoryView }: HistoryPreviewProps) =
|
|||||||
{" • "}
|
{" • "}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<span>API Cost: ${item.totalCost.toFixed(4)}</span>
|
<span>API Cost: ${item.totalCost?.toFixed(4)}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -268,7 +268,7 @@ const HistoryView = ({ taskHistory, onDone }: HistoryViewProps) => {
|
|||||||
API Cost:
|
API Cost:
|
||||||
</span>
|
</span>
|
||||||
<span style={{ color: "var(--vscode-descriptionForeground)" }}>
|
<span style={{ color: "var(--vscode-descriptionForeground)" }}>
|
||||||
${item.totalCost.toFixed(4)}
|
${item.totalCost?.toFixed(4)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<VSCodeButton
|
<VSCodeButton
|
||||||
|
@ -234,7 +234,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
|
|||||||
}}>
|
}}>
|
||||||
<div style={{ display: "flex", alignItems: "center", gap: "4px" }}>
|
<div style={{ display: "flex", alignItems: "center", gap: "4px" }}>
|
||||||
<span style={{ fontWeight: "bold" }}>API Cost:</span>
|
<span style={{ fontWeight: "bold" }}>API Cost:</span>
|
||||||
<span>${totalCost.toFixed(4)}</span>
|
<span>${totalCost?.toFixed(4)}</span>
|
||||||
</div>
|
</div>
|
||||||
<VSCodeButton
|
<VSCodeButton
|
||||||
appearance="icon"
|
appearance="icon"
|
||||||
|
Loading…
Reference in New Issue
Block a user