1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Number input and max release size limit increased

Fixed: Number input changing value while typing
New: Maximum size limit has been doubled

Closes #2921
This commit is contained in:
Mark McDowall
2019-02-06 19:25:01 -08:00
parent a29b1259b5
commit 807cfebf76
7 changed files with 154 additions and 51 deletions
@@ -0,0 +1,5 @@
export default function roundNumber(input, decimalPlaces = 1) {
const multiplier = Math.pow(10, decimalPlaces);
return Math.round(input * multiplier) / multiplier;
}