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
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:
How to test:
Run app with DISPLAY_COVID_DATA=true set in env.
Linked issues:
Fixes: #959