mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +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) {
|
||||
when (event) {
|
||||
BugReportEvents.SendBugReport -> {
|
||||
if (formState.value.description.length < 10) {
|
||||
if (formState.value.description.length < 10 && formState.value.ghIssueNumber == null) {
|
||||
sendingAction.value = AsyncAction.Failure(BugReportFormError.DescriptionTooShort)
|
||||
} else {
|
||||
sendingAction.value = AsyncAction.Loading
|
||||
|
||||
Reference in New Issue
Block a user