mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
add missing call to get user
This commit is contained in:
parent
d048d562a3
commit
63e74648c4
@ -13,7 +13,7 @@ export function SidebarProfile() {
|
||||
};
|
||||
|
||||
const handleClickLogin = () => {
|
||||
window.electron.openExternal("https://auth.losbroxas.org");
|
||||
window.electron.openExternal("https://auth.hydra.losbroxas.org");
|
||||
};
|
||||
|
||||
if (isLoading) return null;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useCallback, useState } from "react";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { useAppDispatch, useAppSelector } from "./redux";
|
||||
import { setUserAuth } from "@renderer/features";
|
||||
|
||||
@ -25,6 +25,10 @@ export function useUserAuth() {
|
||||
});
|
||||
}, [dispatch]);
|
||||
|
||||
useEffect(() => {
|
||||
updateUserAuth();
|
||||
}, []);
|
||||
|
||||
const clearUserAuth = useCallback(async () => {
|
||||
dispatch(setUserAuth(null));
|
||||
}, [dispatch]);
|
||||
|
Loading…
Reference in New Issue
Block a user