Skip to content

Commit

Permalink
Merge pull request #865 from kunwar-11/fix/toast-message-issue
Browse files Browse the repository at this point in the history
Fix/toast message issue
  • Loading branch information
jasirtp authored Feb 21, 2022
2 parents 176b5a1 + f67de16 commit 27be827
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/admin/events/create-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ const CreateEvent = ({ referer }) => {
const data = await EventService.createNewEvent(userCookie, eventData);
if (data) {
setIsLoading(false);
notify(data.data.message);
notify("Event Cretated Successfully");
router.push("/admin/events");
}
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion pages/e/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const Request = () => {
const data = await EventService.requestEvent(eventData);
if (data) {
setIsLoading(false);
notify(data.data.message);
notify("Event Requested for review");
}
} catch (err) {
setIsLoading(false);
Expand Down
2 changes: 1 addition & 1 deletion services/EventService.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async function requestEvent(eventData) {
if (response) {
const res = await getImageUrl(eventData, response.data.data.id);

response = await axios.put(
response = await axios.patch(
`${baseUrl}/api/v1/event/${response.data.data.id}`,
{
guest_image: res[0],
Expand Down

0 comments on commit 27be827

Please sign in to comment.