Skip to content

Commit

Permalink
Convert negative numbers to positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Fweddi committed Feb 27, 2025
1 parent 34aebf2 commit 6cb9177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/js/utils/observable-numeric.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function(initialValue) {
},
write(newValue) {
var parsedValue = parseFloat(newValue);
actual(isNaN(parsedValue) ? newValue : parsedValue);
actual(isNaN(parsedValue) ? newValue : Math.abs(parsedValue));
}
});
}

0 comments on commit 6cb9177

Please sign in to comment.