@gamelearn/arcade-components 1.29.1 → 1.29.2

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.
@@ -167,8 +167,6 @@ var useEkho = function useEkho(_ref) {
167
167
  }
168
168
  }, [noAudio, stopCurrentAudio]);
169
169
  (0, _react.useEffect)(function () {
170
- stopCurrentAudio();
171
-
172
170
  if (isMounted && started) {
173
171
  if (audioType === 'voice' && voice !== null && voice !== void 0 && voice.id) {
174
172
  var voiceId = getVoice(voice);
@@ -182,7 +180,7 @@ var useEkho = function useEkho(_ref) {
182
180
  onError();
183
181
  }
184
182
  }
185
- }, [getVoice, playSpeech, isMounted, voice, text, audioType, audio === null || audio === void 0 ? void 0 : audio.url, audio, setCurrentPlaying, onError, started, stopCurrentAudio]);
183
+ }, [getVoice, playSpeech, isMounted, voice, text, audioType, audio === null || audio === void 0 ? void 0 : audio.url, audio, setCurrentPlaying, onError, started]);
186
184
  return stopCurrentAudio;
187
185
  };
188
186
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "1.29.1",
5
+ "version": "1.29.2",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",