First .then method is using arrow function syntax and the second .then method is using the function keyword syntax. Is this just inconsistent coding style or does it have a purpose?
store
.dispatch(Actions.LOGIN, values)
.then(() => {
Swal.fire({
text: "Sucess!",
icon: "success",
buttonsStyling: false,
confirmButtonText: "Ok!",
customClass: {
confirmButton: "btn fw-bold btn-light-primary",
},
}).then(function () {
// Go to page after successfully login
router.push({ name: "dashboard" });
});
})