|
@@ -27,14 +27,22 @@ const Index = () => { |
|
|
}, |
|
|
}, |
|
|
onSuccess: (responseData) => { |
|
|
onSuccess: (responseData) => { |
|
|
navigate('/iAmSmartRegisterFrom', { state: { responseData: responseData } }); |
|
|
navigate('/iAmSmartRegisterFrom', { state: { responseData: responseData } }); |
|
|
|
|
|
}, |
|
|
|
|
|
onFail: (response)=>{ |
|
|
|
|
|
console.log("Fail"); |
|
|
|
|
|
console.log(response); |
|
|
|
|
|
window.location.assign("/register"); |
|
|
|
|
|
}, |
|
|
|
|
|
onError:(error)=>{ |
|
|
|
|
|
console.log(error); |
|
|
|
|
|
window.location.assign("/register"); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
}else{ |
|
|
|
|
|
window.location.assign("/register"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<LoadingComponent /> |
|
|
<LoadingComponent /> |
|
|
); |
|
|
); |
|
|