We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2625aaa commit 033650bCopy full SHA for 033650b
shared/components/stat.tsx
@@ -10,7 +10,12 @@ export function DynamicStat(props: DynamicStatProps) {
10
const [fStarted, setFStarted] = useState(false);
11
12
const countUpRef = React.useRef<HTMLDivElement>(null);
13
- const countUp = useCountUp({ ref: countUpRef, start: 0, end: 0, duration: 2 });
+ const countUp = useCountUp({
14
+ ref: countUpRef as React.RefObject<HTMLDivElement>,
15
+ start: 0,
16
+ end: 0,
17
+ duration: 2,
18
+ });
19
if (inView && !fStarted) {
20
setFStarted(true);
21
countUp.update(props.quantity);
0 commit comments