1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-06 14:16:50 +02:00

Fix tslint issues

This commit is contained in:
Phuoc Nguyen
2019-12-29 07:33:37 +07:00
parent b02eb2de0a
commit 01ee4d040a

View File

@@ -11,8 +11,8 @@ const Details: React.FC<{}> = () => {
const decrease = () => setValue(value - 1);
const increase = () => setValue(value + 1);
const change = (e: React.ChangeEvent<HTMLInputElement>) => {
const value = parseInt(e.target.value, 10);
const newValue = isNaN(value) ? 0 : value;
const v = parseInt(e.target.value, 10);
const newValue = isNaN(v) ? 0 : v;
setValue(newValue);
};