md-y/mangadex-full-api

this.chapter has the volume instead of chapter

Closed this issue · 1 comments

mftb0 commented

In src/structure/chapter.js on line 32. There's a typo, this.chapter is set to either the value of data.volume or undefined, based on the value of data.volume. I think it was meant to be:

this.chapter = data.chapter ? parseFloat(data.chapter): undefined;

md-y commented

Thanks for notifying me! I fixed it for version 1.4.0