Adds vocabulary to the wanikani dashboard
< Feedback on Vocabulary for Wanikani
Sort bug
I found a bug in the vocab sort function. Array.sort() expect the function to return an integer and not a boolean.
Array.sort()
integer
boolean
You should change
vocabList.sort((left, right) => {return left.level > right.level;});
to
vocabList.sort((left, right) => {return left.level - right.level;});
Fixed
Sign in to post a reply.
Sort bug
I found a bug in the vocab sort function.
Array.sort()
expect the function to return aninteger
and not aboolean
.You should change
to