diff --git a/frontend/src/pages/my-account/useMyAccount.js b/frontend/src/pages/my-account/useMyAccount.js index a79a861..c2d1201 100644 --- a/frontend/src/pages/my-account/useMyAccount.js +++ b/frontend/src/pages/my-account/useMyAccount.js @@ -84,6 +84,18 @@ export default function useMyAccount() { alertType: "error" }) } + } else if (paymentData.status === 200 && paymentData.data.status === 202) { + setToastData({ + message: "Success! Don't forget to attend them ;)", + alertType: "success" + }) + + getWorkshopsData() + getPresentationsData() + getUserWorkshops() + getUserPresentations() + getTeachersData() + getPresenterData() } else { setToastData({ message: "Invalid Offer Code! Please Try Again",