From 6954882a62ab95f698420ddbf5950b0bac145505 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Thu, 13 Jul 2023 16:07:52 +1000 Subject: [PATCH] Dont redirect to home page after successfully comitting workout --- templates/new_workout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));