Skip to content

Commit

Permalink
fix fetch for country white list on global level
Browse files Browse the repository at this point in the history
  • Loading branch information
edbrett committed Jan 25, 2019
1 parent 1e741d7 commit 46fdae7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class WhitelistProvider extends PureComponent {
getCountryWhitelist,
getRegionWhitelist
} = this.props;
getCountryWhitelist(adm0);
if (adm0) {
getCountryWhitelist(adm0);
}
if (adm1) {
getRegionWhitelist({ adm0, adm1, adm2 });
}
Expand Down

0 comments on commit 46fdae7

Please sign in to comment.