fix: mii list on profiles not actually showing user's miis
This commit is contained in:
parent
029c7411bb
commit
95fd9a7c40
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ const fetcher = (url: string) => fetch(url).then((res) => res.json());
|
|||
|
||||
export default function MiiList({ isLoggedIn, userId, sessionUserId }: Props) {
|
||||
const searchParams = useSearchParams();
|
||||
const { data, error } = useSWR<ApiResponse>(`/api/mii/list?${searchParams.toString()}`, fetcher);
|
||||
const { data, error } = useSWR<ApiResponse>(`/api/mii/list?${searchParams.toString()}${userId && `&userId=${userId}`}`, fetcher);
|
||||
|
||||
return (
|
||||
<div className="w-full">
|
||||
|
|
|
|||
Loading…
Reference in a new issue