Compare commits

..

3 Commits

Author SHA1 Message Date
victorAnumudu d641ea57bc bug-fixed issue with calling the endpoint 2026-05-26 19:35:13 +01:00
victorAnumudu 5cde7e1f58 bug-fixed issue with calling the endpoint 2026-05-26 19:30:18 +01:00
ameye 9e98293876 Merge branch 'contact-endpoint' of MERMS/MermsWebsite2025 into master 2026-05-25 19:51:00 +00:00
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ const siteServerPath = () => {
return process.env.NEXT_PUBLIC_APP_MAIN_API;
}
const postAuxEnd = (basePath, path, postData) => {
const postAuxEnd = (basePath, path, postData, media=false) => {
// const basePath = media ? process.env.NEXT_PUBLIC_APP_MAIN_API : process.env.NEXT_PUBLIC_APP_MAIN_API;
let newPostData = {}
if (!media) {
+3 -3
View File
@@ -29,9 +29,9 @@ export default function Home() {
return sendContactMsg(fields)
},
onSuccess: (res) => {
if (res?.data?.resultCode != '0') {
throw({message: res?.data?.resultDescription})
}
// if (res?.data?.resultCode != '0') {
// throw({message: res?.data?.resultDescription})
// }
window.scrollTo(0, 0);
},
// onSettled: () => {