Fixed map issue.

This commit is contained in:
Mike Cao 2023-04-13 23:05:54 -07:00
parent 2890cb4419
commit b183fc1600

View File

@ -27,7 +27,7 @@ function WorldMap({ data, className }) {
);
const { locale } = useLocale();
const countryNames = useCountryNames(locale);
const metrics = useMemo(() => percentFilter(data), [data]);
const metrics = useMemo(() => (data ? percentFilter(data) : []), [data]);
function getFillColor(code) {
if (code === 'AQ') return;