From 0c832078a3ad6e5ea3d732b484536e85f6dc6dec Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Fri, 28 Jun 2024 16:45:28 +0200 Subject: [PATCH] feat: remove limit --- components/MyPages/Blocks/Stays/Previous/index.tsx | 4 +--- components/MyPages/Blocks/Stays/Upcoming/index.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/MyPages/Blocks/Stays/Previous/index.tsx b/components/MyPages/Blocks/Stays/Previous/index.tsx index 9a2959d23..49c4316a5 100644 --- a/components/MyPages/Blocks/Stays/Previous/index.tsx +++ b/components/MyPages/Blocks/Stays/Previous/index.tsx @@ -13,9 +13,7 @@ export default async function PreviousStays({ subtitle, link, }: AccountPageComponentProps) { - const initialPreviousStays = await serverClient().user.stays.previous({ - limit: 6, - }) + const initialPreviousStays = await serverClient().user.stays.previous() if (!initialPreviousStays?.data) { return null } diff --git a/components/MyPages/Blocks/Stays/Upcoming/index.tsx b/components/MyPages/Blocks/Stays/Upcoming/index.tsx index b9085cb4f..736251cfa 100644 --- a/components/MyPages/Blocks/Stays/Upcoming/index.tsx +++ b/components/MyPages/Blocks/Stays/Upcoming/index.tsx @@ -14,9 +14,7 @@ export default async function UpcomingStays({ subtitle, link, }: AccountPageComponentProps) { - const initialUpcomingStays = await serverClient().user.stays.upcoming({ - limit: 3, - }) + const initialUpcomingStays = await serverClient().user.stays.upcoming() if (!initialUpcomingStays?.data) { return null }