Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
masclot committed Oct 17, 2023
1 parent 52e1261 commit c89659d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,10 @@ class FractionInteractionViewModel private constructor(
}
}
AnswerErrorCategory.SUBMIT_TIME -> {
pendingAnswerError = if (answerText.isNotEmpty()) {
pendingAnswerError =
FractionParsingUiError.createFromParsingError(
fractionParser.getSubmitTimeError(answerText.toString())
).getErrorMessageFromStringRes(resourceHandler)
} else {
resourceHandler.getStringInLocale(R.string.interaction_answer_empty_on_submit)
}
}
}
errorMessage.set(pendingAnswerError)
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -606,5 +606,4 @@
<string name="lock_icon_content_description">Lock Icon</string>
<string name="download_status_image_content_description">Download Status</string>
<string name="font_scale_html_content_text">html Content</string>
<string name="interaction_answer_empty_on_submit">"Enter an answer to continue"</string>
</resources>

0 comments on commit c89659d

Please sign in to comment.