diff --git a/.changeset/chilled-sheep-remain.md b/.changeset/chilled-sheep-remain.md new file mode 100644 index 000000000..01dcc9ba5 --- /dev/null +++ b/.changeset/chilled-sheep-remain.md @@ -0,0 +1,5 @@ +--- +'renterd': patch +--- + +Fixed an issue where the filtered contract count was being used in the onboarding checks. diff --git a/apps/renterd/components/Contracts/ContractsFilterBar.tsx b/apps/renterd/components/Contracts/ContractsFilterBar.tsx index 407486579..865493d41 100644 --- a/apps/renterd/components/Contracts/ContractsFilterBar.tsx +++ b/apps/renterd/components/Contracts/ContractsFilterBar.tsx @@ -3,7 +3,7 @@ import { useContracts } from '../../contexts/contracts' import { ContractsFilterMenu } from './ContractsFilterMenu' export function ContractsFilterBar() { - const { dataState, offset, limit, datasetCount, pageCount } = useContracts() + const { dataState, offset, limit, datasetFilteredCount, pageCount } = useContracts() return (
@@ -13,7 +13,7 @@ export function ContractsFilterBar() { isLoading={dataState === 'loading'} offset={offset} limit={limit} - datasetTotal={datasetCount} + datasetTotal={datasetFilteredCount} pageTotal={pageCount} />
diff --git a/apps/renterd/contexts/contracts/index.tsx b/apps/renterd/contexts/contracts/index.tsx index 1eab64ee9..6173fdbdc 100644 --- a/apps/renterd/contexts/contracts/index.tsx +++ b/apps/renterd/contexts/contracts/index.tsx @@ -146,7 +146,8 @@ function useContractsMain() { isLoading: response.isLoading, error: response.error, pageCount: datasetPage?.length || 0, - datasetCount: datasetFiltered?.length || 0, + datasetCount: dataset?.length || 0, + datasetFilteredCount: datasetFiltered?.length || 0, columns: filteredTableColumns, dataset, datasetPage,