@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 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chao-component/bag-animation-ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",