From 5cde7e1f581292150fc83d53df804ffb5f209c67 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 26 May 2026 19:30:18 +0100 Subject: [PATCH 1/2] bug-fixed issue with calling the endpoint --- components/services/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/services/services.js b/components/services/services.js index ed2f767..1874500 100644 --- a/components/services/services.js +++ b/components/services/services.js @@ -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) { From d641ea57bc602ab4097aaab8a00695414d8ae6a0 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 26 May 2026 19:35:13 +0100 Subject: [PATCH 2/2] bug-fixed issue with calling the endpoint --- pages/contacts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/contacts.js b/pages/contacts.js index a7af4a4..e82648a 100644 --- a/pages/contacts.js +++ b/pages/contacts.js @@ -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: () => {