Login:App:Confirm: fix handling of getUserByEmail request results
This commit is contained in:
parent
283e7b221e
commit
780252f9f1
@ -70,10 +70,9 @@ export default function withLoader<T extends WithLoaderProps>(
|
|||||||
|
|
||||||
const getData = useCallback(async () => {
|
const getData = useCallback(async () => {
|
||||||
if (type === "EmpInvite" && email) {
|
if (type === "EmpInvite" && email) {
|
||||||
try {
|
|
||||||
const response = await getUserByEmail(email, confirmHeader);
|
const response = await getUserByEmail(email, confirmHeader);
|
||||||
|
|
||||||
if (response) {
|
if (response !== 404) {
|
||||||
const loginData = window.btoa(
|
const loginData = window.btoa(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
type: "invitation",
|
type: "invitation",
|
||||||
@ -87,9 +86,6 @@ export default function withLoader<T extends WithLoaderProps>(
|
|||||||
`?loginData=${loginData}`,
|
`?loginData=${loginData}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user