diff --git a/templates/new_workout.html b/templates/new_workout.html index e198fc4..a82e3c1 100644 --- a/templates/new_workout.html +++ b/templates/new_workout.html @@ -225,7 +225,7 @@ }).then(res => res.json()) .then(res => { workoutData = []; - swal("Submitted", JSON.stringify(res), "success").then(isConfirm => window.location.href = '/'); + swal("Submitted", JSON.stringify(res), "success"); }) .catch(err => swal("Failed to submit workout", err.message, "error"));