Fix copying a set
This commit is contained in:
parent
2cc27e11f5
commit
b2ffe99f2d
|
@ -108,9 +108,9 @@ export default function SetForm({
|
|||
}, [getTodaysSets, getTodaysPlan, getBest]);
|
||||
|
||||
useEffect(() => {
|
||||
if (set.id) return;
|
||||
if (set.id || set.name) return;
|
||||
predict();
|
||||
}, [predict, set.id]);
|
||||
}, [predict, set.id, set.name]);
|
||||
|
||||
const onConfirm = (date: Date) => {
|
||||
setCreated(date);
|
||||
|
|
Loading…
Reference in New Issue
Block a user