Open PaulOgunmwonyi opened 2 months ago
const handleAddWorkout = async () => { const addedWorkout = await addWorkout(newWorkout); setWorkouts([...workouts, addedWorkout]); setNewWorkout({ group_name: '', name: '', weight: 0, reps: 0, sets: 0, }); };
const handleAddWorkout = async () => { const addedWorkout = await addWorkout(newWorkout); setWorkouts([...workouts, addedWorkout]); setNewWorkout({ group_name: '', name: '', weight: 0, reps: 0, sets: 0, }); };