diff --git a/src/v2/components/Validators/Detail/index.jsx b/src/v2/components/Validators/Detail/index.jsx index 0ab5ea1c..39558431 100644 --- a/src/v2/components/Validators/Detail/index.jsx +++ b/src/v2/components/Validators/Detail/index.jsx @@ -5,6 +5,7 @@ import useMediaQuery from '@material-ui/core/useMediaQuery/useMediaQuery'; import React, {useEffect} from 'react'; import {map, find, eq} from 'lodash/fp'; import {Match} from 'react-router-dom'; +import getUptime from 'v2/utils/getUptime'; import { ComposableMap, @@ -51,6 +52,8 @@ const ValidatorsDetail = ({match}: {match: Match}) => { find({nodePubkey: params.id})(validators) || find({nodePubkey: params.id})(inactiveValidators); + const uptime = getUptime(node); + if (!node) { return