Skip to content

Commit

Permalink
When user enters only whitespace for payee, we should ignore it, inst…
Browse files Browse the repository at this point in the history
…ead of throwing exception that is not very helpful

(Required value was null.)
  • Loading branch information
mtotschnig committed Sep 29, 2023
1 parent 9af02bc commit dade9e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ abstract class MainDelegate<T : ITransaction>(
if (this@MainDelegate.payeeId != null) {
this.payeeId = this@MainDelegate.payeeId
} else {
payee = viewBinding.Payee.text.toString()
payee = viewBinding.Payee.text.toString().trim()
}
this.debtId = this@MainDelegate.debtId
this.methodId = this@MainDelegate.methodId
Expand Down

0 comments on commit dade9e7

Please sign in to comment.