Skip to content

Commit

Permalink
Fix MAL series status updating
Browse files Browse the repository at this point in the history
  • Loading branch information
remixz committed Apr 20, 2017
1 parent 1dfd0ee commit 37c9da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Media.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
this.timeout = setTimeout(async () => {
try {
const episode = this.collectionMedia.indexOf(this.media.media_id.toString()) + 1
const status = (episode === this.collectionMedia.length && this.malItem.payload.status !== 'Finished Airing') ? 'completed' : 'watching'
const status = (episode === this.collectionMedia.length && this.malItem.payload.status === 'Finished Airing') ? 'completed' : 'watching'
await axios.post(`${UMI_SERVER}/mal/update`, {
username: this.malAuth.username,
password: this.malAuth.password,
Expand Down

0 comments on commit 37c9da0

Please sign in to comment.