mirror of
https://dev.azure.com/tstanciu94/Packages/_git/tuitio-client-react
synced 2025-04-07 00:27:20 +03:00
useTuitioClient fix
This commit is contained in:
parent
3f35229fef
commit
e5685daa52
@ -27,8 +27,10 @@ const useTuitioClient = (options: TuitioClientHookOptions) => {
|
|||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (onLoginError) onLoginError(error);
|
if (onLoginError) {
|
||||||
else throw error;
|
onLoginError(error);
|
||||||
|
}
|
||||||
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user