Skip to content

Commit

Permalink
Fix kanji convert answer check
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Sep 2, 2020
1 parent 14d9899 commit 49d3cf1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class LearningKanjiConvert : ILearning {
override fun checkAnswer(myAnswer: String) : Pair<IsCorrect, String> {
return if (myAnswer == currentKanji.kanji) {
return Pair(IsCorrect.YES, currentKanji.kanji)
} else if (myAnswer == currentKanji.kanji[0].toString()) {
return Pair(IsCorrect.YES, currentKanji.kanji[0].toString())
} else {
return Pair(IsCorrect.NO, currentKanji.kanji)
}
Expand Down

0 comments on commit 49d3cf1

Please sign in to comment.