Prevent Infinity #1540

This commit is contained in:
the-djmaze 2024-04-08 17:22:27 +02:00
parent 969dca5f7e
commit bcc2c7b9ca
3 changed files with 5 additions and 6 deletions

View file

@ -10,7 +10,7 @@ export const
pInt = (value, defaultValue = 0) => {
value = parseInt(value, 10);
return isNaN(value) || !isFinite(value) ? defaultValue : value;
return isFinite(value) ? value : defaultValue;
},
defaultOptionsAfterRender = (domItem, item) =>