aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2020-11-18 15:03:45 -0500
committerGalen Guyer <galen@galenguyer.com>2020-11-18 15:03:45 -0500
commit05423554f6379e3d1e2325c853f6708a35ae72b1 (patch)
tree009871101f49f4c408cc2527758d386c6d228e09 /src
parentd3bcb60cd9e908f96b748cab2f496812a7b8437f (diff)
round diff in prior positive test rate, boo floats
Diffstat (limited to 'src')
-rw-r--r--src/MainPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MainPage.js b/src/MainPage.js
index c7e0721..1657bec 100644
--- a/src/MainPage.js
+++ b/src/MainPage.js
@@ -121,7 +121,7 @@ const MainPage = (props) => {
<Card
name="Positive Test Rate"
latest={positiveTestRate + "%"}
- diff={positiveTestRate - priorPositiveTestRate + "%"}
+ diff={(positiveTestRate - priorPositiveTestRate).toFixed(1) + "%"}
link="/positivetests"
/>
</div>