1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

telegram: now able to delete it

This commit is contained in:
Fedor Katurov 2023-03-13 18:26:16 +06:00
parent e994176bff
commit 47eee7d166
10 changed files with 112 additions and 26 deletions

View file

@ -43,8 +43,6 @@ export const useOAuth = () => {
setToken(result.token);
hideModal();
} catch (error) {
console.log(path(['response'], error));
const needsRegister = path(['response', 'status'], error) === 428;
if (needsRegister && token) {
@ -97,6 +95,7 @@ export const useOAuth = () => {
);
const accounts = useMemo(() => data || [], [data]);
const refresh = useCallback(() => mutate(), []);
return {
openOauthWindow,
@ -106,5 +105,6 @@ export const useOAuth = () => {
dropAccount,
accounts,
isLoading: !data && isLoading,
refresh,
};
};