From 264b727dfe0cc983710a4d1701c276aa46b7f7f9 Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Sun, 29 Dec 2024 15:15:30 +0300 Subject: [PATCH] Fixed advanced market opening for anon users --- src/api/queries/get-transactions-query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/queries/get-transactions-query.ts b/src/api/queries/get-transactions-query.ts index 1236572fb..aa13b6ddf 100644 --- a/src/api/queries/get-transactions-query.ts +++ b/src/api/queries/get-transactions-query.ts @@ -68,5 +68,5 @@ export const getTransactionsQuery = ( initialData: { pages: [], pageParams: [] }, initialPageParam: -1, getNextPageParam: (lastPage, __) => - lastPage ? (lastPage[lastPage.length - 1].num ?? 0) - 1 : -1 + lastPage ? (lastPage[lastPage.length - 1]?.num ?? 0) - 1 : -1 });