Dont redirect to home page after successfully comitting workout
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user