Skip to content

Commit

Permalink
Fix SSR condition (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkelov authored Oct 16, 2022
1 parent ae61e9d commit f4c2925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CountUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ const CountUp: React.FC<CountUpProps> = (props) => {
style={style}
{...containerProps}
>
{props.start ? getCountUp().formattingFn(props.start) : ''}
{typeof props.start !== 'undefined'
? getCountUp().formattingFn(props.start)
: ''}
</span>
);
};
Expand Down

0 comments on commit f4c2925

Please sign in to comment.