diff --git a/frontend/src/components/mii/list/filter-menu.tsx b/frontend/src/components/mii/list/filter-menu.tsx index b7504e8..dca155b 100644 --- a/frontend/src/components/mii/list/filter-menu.tsx +++ b/frontend/src/components/mii/list/filter-menu.tsx @@ -21,6 +21,7 @@ export default function FilterMenu() { const rawTags = searchParams.get("tags") || ""; const rawExclude = searchParams.get("exclude") || ""; const allowCopying = (searchParams.get("allowCopying") as unknown as boolean) || false; + const isFromSaveFile = (searchParams.get("isFromSaveFile") as unknown as boolean) || false; const tags = useMemo( () => @@ -66,9 +67,10 @@ export default function FilterMenu() { if (gender) count++; if (allowCopying) count++; if (makeup) count++; + if (isFromSaveFile) count++; setFilterCount(count); - }, [tags, exclude, platform, gender, allowCopying, makeup]); + }, [tags, exclude, platform, gender, allowCopying, makeup, isFromSaveFile]); return (
diff --git a/frontend/src/pages/profile/layout.tsx b/frontend/src/pages/profile/layout.tsx index a1f4dda..9b967f2 100644 --- a/frontend/src/pages/profile/layout.tsx +++ b/frontend/src/pages/profile/layout.tsx @@ -46,7 +46,7 @@ export default function ProfileLayout() { const isAdmin = userId === Number(import.meta.env.VITE_ADMIN_USER_ID); const isContributor = import.meta.env.VITE_CONTRIBUTORS_USER_IDS?.split(",").includes(String(user?.id)); - const isOwnProfile = userId === user?.id; + const isOwnProfile = $session?.user?.id && userId === Number($session.user.id); const joinDate = new Date(user.createdAt).toLocaleDateString("en-US", { month: "long", year: "numeric" }); const metaTitle = `${user.name} - TomodachiShare`;