Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed May 22, 2023
1 parent ebbf6f7 commit 88fe537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/StatisticBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const View = ({ data, mode }) => {
>
{items.map((item, index) => {
const StatisticWrapper = item.href ? UniversalLink : Statistic;
const slateNodes = serializeToNodes(item.value);
const valueNo = Number(serializeNodesToText(slateNodes));
const valueNodes = serializeToNodes(item.value);
const valueNo = Number(serializeNodesToText(valueNodes));

return (
<StatisticWrapper
Expand All @@ -95,7 +95,7 @@ const View = ({ data, mode }) => {
{(props) => <CountUpWrapper {...props} />}
</CountUp>
) : (
_serializeNodes(slateNodes)
_serializeNodes(valueNodes)
)}
</Statistic.Value>
<Statistic.Label className={cx('slate', labelVariation)}>
Expand Down

0 comments on commit 88fe537

Please sign in to comment.