Skip to content

Commit

Permalink
Addresses OpenHistoricalMap/issues#737 by reversing an isNaN test in …
Browse files Browse the repository at this point in the history
…uiFieldDate.
  • Loading branch information
erictheise committed Apr 10, 2024
1 parent ea05e34 commit 48bec43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/iD.js
Original file line number Diff line number Diff line change
Expand Up @@ -69662,7 +69662,7 @@
} else {
let value = "";
let year2 = parseInt(context.cleanTagValue(yearValue), 10);
if (isNaN(year2)) {
if (!isNaN(year2)) {
if (eraValue === bceName) {
value += "-" + String(year2 - 1).padStart(4, "0");
} else {
Expand Down
Loading

0 comments on commit 48bec43

Please sign in to comment.