Add fix formating.

pull/433/head
Andrey Dolgolev 2021-11-16 03:04:05 +02:00
rodzic b1b55ae3e2
commit ffdfc86b25
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -49,7 +49,9 @@ const SubscriptionReport = ({ timeRange, url, id, type }) => {
<Text placeSelf="center">{metric.display_name}</Text>
<Text p={2} fontSize="42px" placeSelf="center">
{metric.display_name == "Total weth earned"
? Number.parseFloat(Number.parseFloat(metric.value) / 1e18)
? Number.parseFloat(
Number.parseFloat(metric.value) / 1e18
).toString()
: metric.value}
</Text>
</Flex>