Skip to content

Commit

Permalink
fix: fall back to unknown silver fir area
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Apr 8, 2020
1 parent 30bbc32 commit fe75d70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/locate.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ function locate(location = {}) {
if (locations[forestEcoregion][altitudinalZone][silverFirArea]) {
const id = locations[forestEcoregion][altitudinalZone][silverFirArea];
ecogram = ecograms[id];
} else if (locations[forestEcoregion][altitudinalZone]['unknown']) {
const id = locations[forestEcoregion][altitudinalZone]['unknown'];
ecogram = ecograms[id];
}
}
}
Expand Down

0 comments on commit fe75d70

Please sign in to comment.