fix: 🐛 fix wrong state placement on action (fix #136)

This commit is contained in:
Michel Roux 2024-09-02 10:51:21 +02:00
parent 7c151d8f58
commit 437c7868dd

View File

@ -44,11 +44,11 @@ export const usePlayer = defineStore('player', {
}), }),
) )
this.episode.action = action this.episode.action = action.data
} catch {} } catch {}
if ( if (
this.episode.action?.position && this.episode.action &&
this.episode.action.position < this.episode.action.total this.episode.action.position < this.episode.action.total
) { ) {
audio.currentTime = this.episode.action.position audio.currentTime = this.episode.action.position