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)
|
||||
},
|
||||
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: () => {
|
||||
|
||||
Reference in New Issue
Block a user