@ -20,6 +20,9 @@
onMount(() => {
getUser();
});
setInterval(() => {
},15000)
let isProfileOpen = false;
function clickProfile() {
@ -20,10 +20,8 @@ export async function getUser() {
referrerPolicy: "no-referrer",
let user = await res.json();
if (user.username) {
if (user.username) store.set(user);
console.log(user);
else store.set(null);
store.set(user);
}
export function login() {