diff --git a/src/client/components/Dashboard/Dashboard.tsx b/src/client/components/Dashboard/Dashboard.tsx index 04098a8..4192426 100644 --- a/src/client/components/Dashboard/Dashboard.tsx +++ b/src/client/components/Dashboard/Dashboard.tsx @@ -21,13 +21,15 @@ export const Dashboard = (): ReactElement => { limit: 5, sort: { updatedAt: "-1" }, }, - predicate: { "acquisition.source.wanted": false }, + predicate: { + wanted: { $exists: false }, + }, comicStatus: "recent", }, }), queryKey: ["recentComics"], }); - + // Wanted Comics const { data: wantedComics } = useQuery({ queryFn: async () => await axios({ @@ -39,7 +41,9 @@ export const Dashboard = (): ReactElement => { limit: 5, sort: { updatedAt: "-1" }, }, - predicate: { "acquisition.source.wanted": true }, + predicate: { + wanted: { $exists: true, $ne: null }, + }, }, }), queryKey: ["wantedComics"], diff --git a/src/client/components/Dashboard/RecentlyImported.tsx b/src/client/components/Dashboard/RecentlyImported.tsx index da14c40..47a4e79 100644 --- a/src/client/components/Dashboard/RecentlyImported.tsx +++ b/src/client/components/Dashboard/RecentlyImported.tsx @@ -18,6 +18,7 @@ type RecentlyImportedProps = { export const RecentlyImported = ( comics: RecentlyImportedProps, ): ReactElement => { + console.log(comics); return (
{publisher}
); return ( @@ -61,9 +63,7 @@ export const WantedComicsList = ({