From 3ce7ae5c53705c213b293bb7bca833b066c14d6a Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Wed, 20 Apr 2022 17:43:28 -0400 Subject: only show rocket if there's an increase --- src/pages/Graph.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Graph.jsx b/src/pages/Graph.jsx index eb0475f..0d18fab 100644 --- a/src/pages/Graph.jsx +++ b/src/pages/Graph.jsx @@ -33,7 +33,8 @@ const Graph = (props) => { }); const latest = parsed[parsed.length - 1]; - const toTheMoon = true; + const prior = parsed[parsed.length - 2] + const toTheMoon = latest.value > prior.value + 1; return (
-- cgit v1.2.3