Skip to content

Commit 033650b

Browse files
committed
fix build break
1 parent 2625aaa commit 033650b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

shared/components/stat.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ export function DynamicStat(props: DynamicStatProps) {
1010
const [fStarted, setFStarted] = useState(false);
1111

1212
const countUpRef = React.useRef<HTMLDivElement>(null);
13-
const countUp = useCountUp({ ref: countUpRef, start: 0, end: 0, duration: 2 });
13+
const countUp = useCountUp({
14+
ref: countUpRef as React.RefObject<HTMLDivElement>,
15+
start: 0,
16+
end: 0,
17+
duration: 2,
18+
});
1419
if (inView && !fStarted) {
1520
setFStarted(true);
1621
countUp.update(props.quantity);

0 commit comments

Comments
 (0)