Fix copying a set

This commit is contained in:
Brandon Presley 2022-07-27 15:52:55 +12:00
parent 2cc27e11f5
commit b2ffe99f2d
1 changed files with 2 additions and 2 deletions

View File

@ -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);