Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 5, 2024
1 parent 24a188b commit 7013d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ const generateTags = (input: InputData, opts: Options): GeoTags[] => {

// Geohash
if (opts.geohash && (input.lat && input.lon) || input.geohash) {
let fullGeohash
let fullGeohash = ''
if(input.lat && input.lon) {
fullGeohash = ngeohash.encode(input.lat, input.lon);
}
else {
else if(input?.geohash) {
fullGeohash = input.geohash
}
if(fullGeohash && fullGeohash.length > 0 && opts.legacy === false) {
Expand Down

0 comments on commit 7013d36

Please sign in to comment.