useTuitioClient fix

master
Tudor Stanciu 2023-02-11 20:57:25 +02:00
parent e5685daa52
commit c8f7d86262
1 changed files with 1 additions and 3 deletions

View File

@ -27,9 +27,7 @@ const useTuitioClient = (options: TuitioClientHookOptions) => {
}
return response;
} catch (error) {
if (onLoginError) {
onLoginError(error);
}
onLoginError && onLoginError(error);
throw error;
}
};