diff --git a/apps/pyconkr-admin/src/components/pages/user/shop_order_section.tsx b/apps/pyconkr-admin/src/components/pages/user/shop_order_section.tsx index 2060c85..b0371c0 100644 --- a/apps/pyconkr-admin/src/components/pages/user/shop_order_section.tsx +++ b/apps/pyconkr-admin/src/components/pages/user/shop_order_section.tsx @@ -1,4 +1,4 @@ -import { useBackendAdminClient, useListQuery } from "@frontend/common/hooks/useAdminAPI"; +import { useBackendAdminClient, useListPaginatedQuery } from "@frontend/common/hooks/useAdminAPI"; import { Alert, Chip, CircularProgress, Divider, Stack, Table, TableBody, TableCell, TableHead, TableRow, Typography } from "@mui/material"; import { ErrorBoundary, Suspense } from "@suspensive/react"; import { FC } from "react"; @@ -24,8 +24,8 @@ const InnerShopOrderSection: FC<{ userId: string }> = ErrorBoundary.with( { fallback: ErrorFallback }, Suspense.with({ fallback: }, ({ userId }) => { const client = useBackendAdminClient(); - const ordersQuery = useListQuery(client, "shop", "orders", { user_id: userId }); - const orders = ordersQuery.data ?? []; + const ordersQuery = useListPaginatedQuery(client, "shop", "orders", { user_id: userId }); + const orders = ordersQuery.data?.results ?? []; return (