@gamelearn/arcade-components 2.18.2 → 2.18.4

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.
@@ -48,7 +48,7 @@ var AnimationComponent = function AnimationComponent(_ref) {
48
48
  }, []);
49
49
  (0, _react.useEffect)(function () {
50
50
  setMounted(false);
51
- }, [resource.uid, animation.url]);
51
+ }, [resource.uid, animation === null || animation === void 0 ? void 0 : animation.url]);
52
52
  (0, _react.useEffect)(function () {
53
53
  if (!mounted) {
54
54
  var object;
@@ -58,7 +58,7 @@ var AnimationComponent = function AnimationComponent(_ref) {
58
58
  }
59
59
  });
60
60
 
61
- if (object) {
61
+ if (object && animation) {
62
62
  if (makeDefault) {
63
63
  emitEvent({
64
64
  type: 'saveAnimation',
@@ -103,7 +103,7 @@ var AnimationComponent = function AnimationComponent(_ref) {
103
103
  });
104
104
  }
105
105
  }
106
- }, [scene, animation.url, loopTimes, emitEvent, mounted, loader, resource.uid, makeDefault, animation, resource, enableInteraction]);
106
+ }, [scene, animation === null || animation === void 0 ? void 0 : animation.url, loopTimes, emitEvent, mounted, loader, resource.uid, makeDefault, animation, resource, enableInteraction]);
107
107
  return null;
108
108
  };
109
109
 
@@ -129,7 +129,7 @@ var DecisionComponent = function DecisionComponent(_ref) {
129
129
  emitEvent({
130
130
  type: 'addPoints',
131
131
  payload: choice.rewards,
132
- finish: true,
132
+ finish: false,
133
133
  complex: true,
134
134
  onFinish: function onFinish() {
135
135
  if (_onFinish) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "2.18.2",
5
+ "version": "2.18.4",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",