Dont redirect to home page after successfully comitting workout

This commit is contained in:
Peter Stockings
2023-07-13 16:07:52 +10:00
parent a0e66280f5
commit 6954882a62

View File

@@ -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"));