all: fix formatting
diff --git a/webui/src/web-components/sketch-charts.ts b/webui/src/web-components/sketch-charts.ts
index df10afc..44779b2 100644
--- a/webui/src/web-components/sketch-charts.ts
+++ b/webui/src/web-components/sketch-charts.ts
@@ -105,9 +105,10 @@
if (data.length >= 2) {
const startTime = data[0].timestamp;
const endTime = data[data.length - 1].timestamp;
- const totalHours = (endTime.getTime() - startTime.getTime()) / (1000 * 60 * 60);
+ const totalHours =
+ (endTime.getTime() - startTime.getTime()) / (1000 * 60 * 60);
const totalCost = data[data.length - 1].cost;
-
+
// Only calculate if we have a valid time span
if (totalHours > 0) {
this.dollarsPerHour = totalCost / totalHours;
@@ -438,7 +439,12 @@
return html`
<div class="chart-container" id="chartContainer">
<div class="chart-section">
- <h3>Dollar Usage Over Time${this.dollarsPerHour !== null ? html` (Avg: $${this.dollarsPerHour.toFixed(2)}/hr)` : ''}</h3>
+ <h3>
+ Dollar Usage Over
+ Time${this.dollarsPerHour !== null
+ ? html` (Avg: $${this.dollarsPerHour.toFixed(2)}/hr)`
+ : ""}
+ </h3>
<div class="chart-content">
${this.chartData.length > 0
? html`<vega-embed .spec=${costSpec}></vega-embed>`