bug-fixed issue with calling the endpoint #18

Merged
ameye merged 1 commits from contact-endpoint-bug into master 2026-05-26 20:31:23 +00:00
+3 -3
View File
@@ -29,9 +29,9 @@ export default function Home() {
return sendContactMsg(fields) return sendContactMsg(fields)
}, },
onSuccess: (res) => { onSuccess: (res) => {
if (res?.data?.resultCode != '0') { // if (res?.data?.resultCode != '0') {
throw({message: res?.data?.resultDescription}) // throw({message: res?.data?.resultDescription})
} // }
window.scrollTo(0, 0); window.scrollTo(0, 0);
}, },
// onSettled: () => { // onSettled: () => {