mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 19:33:46 +00:00
refract: cleanup undefined state
This commit is contained in:
@@ -17,7 +17,7 @@ export default function TimeInput(props) {
|
||||
const [value, setValue] = useState(props.value);
|
||||
|
||||
useEffect(() => {
|
||||
if (props.value === null) return;
|
||||
if (props.value == null) return;
|
||||
setValue(props.value);
|
||||
}, [props.value]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user