aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-12-20 13:56:44 -0500
committerGalen Guyer <galen@galenguyer.com>2022-12-20 13:56:44 -0500
commit61628bc04426433f7db9ed19b07bf5171e11c303 (patch)
treebb60d12fb9c7afc915c56fcacebace6778b83376
parent2cadfd86adc30d70538e1d71964fe647c934ee8a (diff)
Don't show stats if they're null lmao I suck at thismaster
-rw-r--r--src/routes/Home.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/Home.js b/src/routes/Home.js
index c867fda..88ad620 100644
--- a/src/routes/Home.js
+++ b/src/routes/Home.js
@@ -11,7 +11,7 @@ export default function Home() {
return (
<div>
<div>
- {metrics != null && (
+ {metrics && metrics.count && (
<p>
Served {metrics.count} queries in the last 24 hours! 99% of those
queries were served in under {(metrics.p99 / 1000).toPrecision(2)}ms