diff --git a/src/index.tsx b/src/index.tsx
index 21aeaf0..5937f45 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1530,12 +1530,17 @@ function SubAgentPanel(props: {
-
- {" "}
- {t("cost.label")}:
- {" ".repeat(expandedPad(t("cost.label")))}
- ${entry.cost!.toFixed(4)}
-
+ {(() => {
+ const cost = entry.cost!
+ return (
+
+ {" "}
+ {t("cost.label")}:
+ {" ".repeat(expandedPad(t("cost.label")))}
+ ${cost.toFixed(4)}
+
+ )
+ })()}