diff --git a/pages/cart/publishers/myschedule.tsx b/pages/cart/publishers/myschedule.tsx index 8c52bec..2918f7b 100644 --- a/pages/cart/publishers/myschedule.tsx +++ b/pages/cart/publishers/myschedule.tsx @@ -110,14 +110,12 @@ export default function MySchedulePage({ assignments }) { }).then(response => { console.log("response", response); //toast success and confirm the change + // refresh the page after toast is closed toast.success("Промяната е записана!", { - position: "top-right", - autoClose: 5000, - hideProgressBar: false, - closeOnClick: true, - pauseOnHover: true, - draggable: true, - progress: undefined, + onClose: () => { + window.location.reload(); + + } }); }).catch(error => { console.log("error", error);