diff options
author | Galen Guyer <galen@galenguyer.com> | 2020-11-18 15:03:45 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2020-11-18 15:03:45 -0500 |
commit | 05423554f6379e3d1e2325c853f6708a35ae72b1 (patch) | |
tree | 009871101f49f4c408cc2527758d386c6d228e09 /src | |
parent | d3bcb60cd9e908f96b748cab2f496812a7b8437f (diff) |
round diff in prior positive test rate, boo floats
Diffstat (limited to 'src')
-rw-r--r-- | src/MainPage.js | 2 |
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> |