check for all necessary variables from API to determine verify link success
This commit was merged in pull request #278.
This commit is contained in:
@@ -86,10 +86,14 @@ export default function VerifyLink() {
|
|||||||
const verifyRes = await userApi.verifyEmail(code);
|
const verifyRes = await userApi.verifyEmail(code);
|
||||||
if (verifyRes.status === 200) {
|
if (verifyRes.status === 200) {
|
||||||
let { data } = verifyRes;
|
let { data } = verifyRes;
|
||||||
|
console.log('TESTING VERIFY',data)
|
||||||
if (
|
if (
|
||||||
data &&
|
data &&
|
||||||
data.internal_return >= 0 &&
|
data.internal_return >= 0 &&
|
||||||
|
data.status == 0 &&
|
||||||
|
data.pending_id != '' &&
|
||||||
|
data.pending_uid != '' &&
|
||||||
|
data.username != '' &&
|
||||||
data.status_text === "Link Verified"
|
data.status_text === "Link Verified"
|
||||||
) {
|
) {
|
||||||
setPageLoader(false);
|
setPageLoader(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user