Skip to content

Commit

Permalink
chore: Fix comparison field for negative numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
kevee committed Jan 5, 2021
1 parent 6ae6199 commit 7cb6e14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/pages/data/hhs-facilities/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ const HHSFacilitiesMap = ({ center, zoom, state = false }) => {
'undefined' ? (
<>
{facility.properties
.adult_inpatient_beds_occupancy_covid >= 0 ? (
.total_adult_patients_hospitalized_confirmed_and_suspected_covid_7_day_avg >=
0 ? (
<>
{Math.round(
facility.properties
Expand Down
3 changes: 2 additions & 1 deletion src/components/pages/data/hhs-facilities/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ const HHSFacilitiesSearch = () => {
{typeof hit.total_adult_patients_hospitalized_confirmed_and_suspected_covid_7_day_avg !==
'undefined' ? (
<>
{hit.adult_inpatient_beds_occupancy_covid > 0 ? (
{hit.total_adult_patients_hospitalized_confirmed_and_suspected_covid_7_day_avg >
0 ? (
<>
{Math.round(
hit.total_adult_patients_hospitalized_confirmed_and_suspected_covid_7_day_avg,
Expand Down

0 comments on commit 7cb6e14

Please sign in to comment.