From b17afbd3b0193035cc05e8b09eb7be8b84fc9688 Mon Sep 17 00:00:00 2001 From: literat Date: Mon, 26 Aug 2024 14:00:37 +0200 Subject: [PATCH] Style(web-react): Apply formatting rules after deps update --- packages/web-react/src/components/Pagination/usePagination.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-react/src/components/Pagination/usePagination.tsx b/packages/web-react/src/components/Pagination/usePagination.tsx index 3350c209dc..95f13992a1 100644 --- a/packages/web-react/src/components/Pagination/usePagination.tsx +++ b/packages/web-react/src/components/Pagination/usePagination.tsx @@ -2,7 +2,7 @@ import { useCallback, useMemo, useState } from 'react'; import { UsePaginationProps } from '../../types/pagination'; export const usePagination = ({ totalPages, onChange, defaultPage, visiblePages }: UsePaginationProps) => { - const [currentPage, setCurrentPage] = useState(defaultPage <= 0 || defaultPage > totalPages ? 1 : defaultPage ?? 1); + const [currentPage, setCurrentPage] = useState(defaultPage <= 0 || defaultPage > totalPages ? 1 : (defaultPage ?? 1)); const [pages, setPagesArray] = useState([visiblePages] ?? [5]); useMemo(() => {