diff --git a/package.json b/package.json index aac3281..43991b4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pdsmanager", "type": "module", - "version": "0.3.4", + "version": "0.3.5", "scripts": { "dev": "astro dev", "build": "astro build", diff --git a/src/components/features/invites/InviteCodes.tsx b/src/components/features/invites/InviteCodes.tsx index bf70748..9c82333 100644 --- a/src/components/features/invites/InviteCodes.tsx +++ b/src/components/features/invites/InviteCodes.tsx @@ -175,15 +175,9 @@ export default function InviteCodes() { }, []); useEffect(() => { - if (typeof window !== "undefined") { - fetchCodes(); - } + fetchCodes(); }, [lastUpdate]); - if (typeof window === "undefined") { - return
; - } - return (