Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaYousefpourM committed Jan 14, 2025
1 parent 4515e69 commit 2b8c418
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/src/pages/my-account/useMyAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2b8c418

Please sign in to comment.