Path-Check / gaen-mobile

The mobile application supporting the GAEN Exposure Notifications protocol.
MIT License
42 stars 36 forks source link

Bugfix - Fix exception occurring due to removed api property from actnow #960

Closed mxMarkowitz closed 2 years ago

mxMarkowitz commented 2 years ago

Why:

Fixes exception occurring on boot where the api will fail to parse data from act now for icu capacity. Even if the component is not enabled the exception will still occur.

This commit:

Sets icuHeadroomRatio to check if it is undefined as well as optional if it is

Screenshots:

Screen Shot 2022-01-18 at 10 02 22 PM

How to test:

Run app with DISPLAY_COVID_DATA=true set in env.

Linked issues:

Fixes: #959