From 2b8c418ecfe446fe6f4d49da00194006fa232ab3 Mon Sep 17 00:00:00 2001 From: alireza Date: Tue, 14 Jan 2025 22:58:42 +0330 Subject: [PATCH] something --- frontend/src/pages/my-account/useMyAccount.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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",