mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Allow empty description if GitHub issue is not empty
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ class BugReportPresenter(
|
|||||||
fun handleEvent(event: BugReportEvents) {
|
fun handleEvent(event: BugReportEvents) {
|
||||||
when (event) {
|
when (event) {
|
||||||
BugReportEvents.SendBugReport -> {
|
BugReportEvents.SendBugReport -> {
|
||||||
if (formState.value.description.length < 10) {
|
if (formState.value.description.length < 10 && formState.value.ghIssueNumber == null) {
|
||||||
sendingAction.value = AsyncAction.Failure(BugReportFormError.DescriptionTooShort)
|
sendingAction.value = AsyncAction.Failure(BugReportFormError.DescriptionTooShort)
|
||||||
} else {
|
} else {
|
||||||
sendingAction.value = AsyncAction.Loading
|
sendingAction.value = AsyncAction.Loading
|
||||||
|
|||||||
Reference in New Issue
Block a user