fix for value === 0 (#2199)

This commit is contained in:
Erik Jan de Wit 2022-03-06 12:20:51 +01:00 committed by GitHub
parent 51c1712fa3
commit e486a189c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ export const TimeSelector = ({
setMultiplier(x);
setTimeValue(value / x);
} else {
setTimeValue("");
setTimeValue(value);
setMultiplier(defaultMultiplier);
}
}, [value]);