PaulOgunmwonyi / GymWebsite

1 stars 0 forks source link

adding a workout doesnt refresh the listing #12

Open PaulOgunmwonyi opened 2 months ago

PaulOgunmwonyi commented 2 months ago

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