mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 14:40:52 +00:00
refactor(workouts): drop the unused clock arguments of the blank draft
This commit is contained in:
1 parent
183b7ce2c5
commit
2798cc953f
3 files changed
+3
-6
No files matched your search
@@ -116,7 +116,7 @@ export function ManualWorkoutForm({
|
||||
// a submit after an edit updates the row the first submit stored.
|
||||
const [externalId] = useState(newManualWorkoutExternalId);
|
||||
const [draft, setDraft] = useState<ManualWorkoutDraft>(() =>
|
||||
emptyManualWorkoutDraft(new Date(), timezone),
|
||||
emptyManualWorkoutDraft(),
|
||||
);
|
||||
const [errors, setErrors] = useState<
|
||||
Partial<Record<ManualWorkoutField, string>>
|
||||
|
||||
Reference in new issue
Block a user