bug-fixed issue with calling the endpoint
This commit was merged in pull request #18.
This commit is contained in:
+3
-3
@@ -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: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user