diff --git a/packages/ui/src/graphql/general/validators_address_list.graphql b/packages/ui/src/graphql/general/validators_address_list.graphql index d018f104bc..7fe9994f85 100644 --- a/packages/ui/src/graphql/general/validators_address_list.graphql +++ b/packages/ui/src/graphql/general/validators_address_list.graphql @@ -13,16 +13,3 @@ query ValidatorsAddressList { } } -query ValidatorAddresses { - validator(where: {validator_info: {operator_address: {_is_null: false}, consensus_address: {_is_null: false}, self_delegate_address: {_is_null: false}}}) { - validatorInfo: validator_info { - operatorAddress: operator_address - selfDelegateAddress: self_delegate_address - consensusAddress: consensus_address - } - validatorDescriptions: validator_descriptions(limit: 1, order_by: {height: desc}) { - moniker - avatarUrl: avatar_url - } - } -} diff --git a/packages/ui/src/recoil/validators/hooks.ts b/packages/ui/src/recoil/validators/hooks.ts index f8c56904d3..157d067146 100644 --- a/packages/ui/src/recoil/validators/hooks.ts +++ b/packages/ui/src/recoil/validators/hooks.ts @@ -1,13 +1,13 @@ import { useEffect } from 'react'; import { useRecoilCallback } from 'recoil'; import { AtomState as ValidatorAtomState } from 'ui/recoil/validators'; -import { useValidatorAddressesQuery } from '@/graphql/types/general_types'; +import { useValidatorsAddressListQuery } from '@/graphql/types/general_types'; import { atomFamilyState as profileAtomFamilyState } from '@/recoil/profiles/atom'; import type { AtomState as ProfileAtomState } from '@/recoil/profiles/types'; import { atomFamilyState as validatorAtomState } from '@/recoil/validators/atom'; export const useValidatorRecoil = () => { - const { loading: loadingValidator, data } = useValidatorAddressesQuery(); + const { loading: loadingValidator, data } = useValidatorsAddressListQuery(); const setValidatorAtomState = useRecoilCallback( ({ set }) => (consensusAddress: string, newState: ValidatorAtomState) =>