Fix DailyLimits passing undefined values into SpinBox
If the type says it's a number, we should ensure it's a number :-) This also fixes fields being empty when they contain a 0 value.
This commit is contained in:
parent
d20a7d291f
commit
df09e34927
@ -23,7 +23,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
}
|
}
|
||||||
|
|
||||||
let stringValue: string;
|
let stringValue: string;
|
||||||
$: if (value) stringValue = value.toFixed(decimalPlaces(step));
|
$: stringValue = value.toFixed(decimalPlaces(step));
|
||||||
|
|
||||||
function update(this: HTMLInputElement): void {
|
function update(this: HTMLInputElement): void {
|
||||||
const newValue = parseFloat(this.value);
|
const newValue = parseFloat(this.value);
|
||||||
|
@ -126,8 +126,8 @@
|
|||||||
: [],
|
: [],
|
||||||
);
|
);
|
||||||
|
|
||||||
let newValue: number;
|
let newValue = 0;
|
||||||
let reviewsValue: number;
|
let reviewsValue = 0;
|
||||||
|
|
||||||
const settings = {
|
const settings = {
|
||||||
newLimit: {
|
newLimit: {
|
||||||
|
Loading…
Reference in New Issue
Block a user