@saooti/octopus-sdk 32.0.42 → 32.0.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.42",
3
+ "version": "32.0.43",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -225,7 +225,11 @@ export default defineComponent({
225
225
  });
226
226
  },
227
227
  play(podcast: Podcast): void {
228
- this.$store.commit('playerPause', podcast === this.$store.state.player.podcast? false: podcast);
228
+ if (podcast === this.$store.state.player.podcast) {
229
+ this.$store.commit('playerPause', false);
230
+ } else {
231
+ this.$store.commit('playerPlayPodcast', podcast);
232
+ }
229
233
  },
230
234
  pause(): void {
231
235
  this.$store.commit('playerPause', true);