From eabdf8e8748bba72013e453796bcc3254b2137d7 Mon Sep 17 00:00:00 2001 From: Dima Axelrod Date: Thu, 10 Oct 2024 09:26:34 +0300 Subject: [PATCH] small fix --- src/app/components/Validator/Validator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/Validator/Validator.tsx b/src/app/components/Validator/Validator.tsx index 07db03e..4230dd1 100644 --- a/src/app/components/Validator/Validator.tsx +++ b/src/app/components/Validator/Validator.tsx @@ -51,7 +51,7 @@ const Validator = () => { const [loadingValidator, setLoadingValidator] = useState(false); const currentNetwork = chainService().getNetwork(); const isHoleskyTestnet = currentNetwork === EChain.Holesky; - const isNotDepositedValidator = (!validator.validatorInfo || Object.keys(validator.validatorInfo).length === 0) && isHoleskyTestnet; + const isNotDepositedValidator = (Object.keys(validator.validator_info || {}).length === 0) && isHoleskyTestnet; /** * Fetch one operator by it's address