aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-04-20 17:43:28 -0400
committerGalen Guyer <galen@galenguyer.com>2022-04-20 17:43:28 -0400
commit3ce7ae5c53705c213b293bb7bca833b066c14d6a (patch)
tree698117240e493a07431c9e06ca0e2d36237fcfa1
parent28f7dec7e98a9065568b88a226bedcecad3a8250 (diff)
only show rocket if there's an increaseHEADmain
-rw-r--r--src/pages/Graph.jsx3
1 files changed, 2 insertions, 1 deletions
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 (
<div>