Skip to content

Commit

Permalink
update Coordinate class constructor logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dgurland committed Dec 5, 2024
1 parent 72340b6 commit 062a234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pages-components/src/map/coordinate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Coordinate {
this.latitude = typeof latitude == "function" ? latitude() : latitude;
this.longitude = typeof longitude == "function" ? longitude() : longitude;
}
if (typeof latitude == "number" && typeof longitude == "number") {
else if (typeof latitude == "number" && typeof longitude == "number") {
this.latitude = latitude;
this.longitude = longitude;
}
Expand Down

0 comments on commit 062a234

Please sign in to comment.