Skip to content

Commit

Permalink
fix: use total contract count for determinating if there's enough con…
Browse files Browse the repository at this point in the history
…tracts

datasetCount from useContracts() is using the filtered count.
  • Loading branch information
multikatt committed Nov 26, 2023
1 parent e02f29f commit 1b436b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { useRedundancySettings } from '../../../hooks/useRedundancySettings'

export function useNotEnoughContracts() {
const redundancy = useRedundancySettings()
const { datasetCount, isLoading: isContractsLoading } = useContracts()
const { dataset, isLoading: isContractsLoading } = useContracts()
const datasetCount = dataset?.length || 0

const active =
redundancy.data &&
Expand Down

0 comments on commit 1b436b3

Please sign in to comment.