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:
parent
e994176bff
commit
47eee7d166
10 changed files with 112 additions and 26 deletions
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue