Commit ba6ab9b9 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #353 from blockscout/api-changes

tx api changes
parents c4f338b2 76f3d02a
...@@ -86,14 +86,13 @@ const LatestBlocks = () => { ...@@ -86,14 +86,13 @@ const LatestBlocks = () => {
{ statsQueryResult.isLoading && ( { statsQueryResult.isLoading && (
<Skeleton h="24px" w="170px" mb={{ base: 6, lg: 9 }}/> <Skeleton h="24px" w="170px" mb={{ base: 6, lg: 9 }}/>
) } ) }
{ statsQueryResult.data?.network_utilization_percentage && ( { statsQueryResult.data?.network_utilization_percentage !== undefined && (
<Box mb={{ base: 6, lg: 9 }}> <Box mb={{ base: 6, lg: 9 }}>
<Text as="span" fontSize="sm"> <Text as="span" fontSize="sm">
Network utilization:{ nbsp } Network utilization:{ nbsp }
</Text> </Text>
{ /* Not implemented in API yet */ }
<Text as="span" fontSize="sm" color="blue.400" fontWeight={ 700 }> <Text as="span" fontSize="sm" color="blue.400" fontWeight={ 700 }>
{ statsQueryResult.data.network_utilization_percentage.toFixed(2) }% { statsQueryResult.data?.network_utilization_percentage.toFixed(2) }%
</Text> </Text>
</Box> </Box>
) } ) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment