eh lala
This commit is contained in:
@@ -10,6 +10,7 @@ import { useCookies } from "react-cookie";
|
||||
const Topbar = () => {
|
||||
const [cookies, setCookie, removeCookie] = useCookies(['name']);
|
||||
const [user, setLogin] = useState(null);
|
||||
|
||||
useEffect(() => {
|
||||
async function reset() {
|
||||
await setLogin(await cookies.GMGM ?? null);
|
||||
@@ -22,9 +23,8 @@ const Topbar = () => {
|
||||
method: 'POST',
|
||||
credentials: 'include'
|
||||
})
|
||||
|
||||
await removeCookie("GMGM");
|
||||
await setLogin(null); // Y U NO WORK?!?
|
||||
await removeCookie("GMGM");
|
||||
await setLogin(null); // Y U NO WORK?!?
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user