zen: show subscription usage in usage history

This commit is contained in:
Frank
2026-01-21 17:21:34 -05:00
parent a132b2a138
commit 80c808d186
2 changed files with 8 additions and 4 deletions
@@ -170,7 +170,12 @@ export function UsageSection() {
</div>
</td>
<td data-slot="usage-cost">
${usage.enrichment?.plan === "sub" ? "0.0000" : ((usage.cost ?? 0) / 100000000).toFixed(4)}
<Show
when={usage.enrichment?.plan === "sub"}
fallback={<>${((usage.cost ?? 0) / 100000000).toFixed(4)}</>}
>
subscription (${((usage.cost ?? 0) / 100000000).toFixed(4)})
</Show>
</td>
</tr>
)