Skip to content

Commit 45b04da

Browse files
committed
[Update] setting default value to the step variable
1 parent 85c0490 commit 45b04da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dist/Functional/CountUp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const InitializeCountUp = () => {
1010
if (!target) return;
1111
let prefix = c.getAttribute("wt-countup-prefix") || "";
1212
let suffix = c.getAttribute("wt-countup-suffix") || "";
13-
let step = +c.getAttribute("wt-countup-step");
13+
let step = +c.getAttribute("wt-countup-step") || 1 ;
1414
let speed = +c.getAttribute("wt-countup-speed") || 10;
1515
let v = 0;
1616

0 commit comments

Comments
 (0)