@chao-component/bag-animation-ui 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -3
- package/dist/index.mjs +0 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -846,9 +846,6 @@ function BagAnimation({
|
|
|
846
846
|
}, [isAnimating]);
|
|
847
847
|
(0, import_react.useEffect)(() => {
|
|
848
848
|
if (!isAnimating || !canvasRef.current || !hasChances) {
|
|
849
|
-
if (!hasChances && isAnimating) {
|
|
850
|
-
setIsAnimating(false);
|
|
851
|
-
}
|
|
852
849
|
return;
|
|
853
850
|
}
|
|
854
851
|
const canvas = canvasRef.current;
|
package/dist/index.mjs
CHANGED
|
@@ -830,9 +830,6 @@ function BagAnimation({
|
|
|
830
830
|
}, [isAnimating]);
|
|
831
831
|
useEffect(() => {
|
|
832
832
|
if (!isAnimating || !canvasRef.current || !hasChances) {
|
|
833
|
-
if (!hasChances && isAnimating) {
|
|
834
|
-
setIsAnimating(false);
|
|
835
|
-
}
|
|
836
833
|
return;
|
|
837
834
|
}
|
|
838
835
|
const canvas = canvasRef.current;
|