azavea / fb-gender-survey-dashboard

Interactive exploration of global results from the Facebook "Survey on Gender Equality At Home
https://gender-survey-dashboard.netlify.app/
Apache License 2.0
2 stars 2 forks source link

Handle null geography mode #131

Closed TaiWilkin closed 2 years ago

TaiWilkin commented 2 years ago

Overview

The geoMode ('region' or 'country') should never be null or undefined; however, in the case that it has an invalid value, ideally the application should handle this error in a reasonable way without crashing.

Is your feature request related to a problem? Please describe.

An invalid geoMode will cause the application to crash.

Describe the solution you'd like

If the geoMode is invalid, the application should not crash. Instead, we should display reasonable filler values and reset the geoMode to its default value.