Implemented removing entered white spaces

This commit is contained in:
dankito 2020-05-13 20:38:14 +02:00
parent 3c56f28efe
commit ea96818d60
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ open class EnterTanResult protected constructor(
companion object {
fun userEnteredTan(enteredTan: String): EnterTanResult {
return EnterTanResult(enteredTan)
return EnterTanResult(enteredTan.replace(" ", ""))
}
fun userDidNotEnterTan(): EnterTanResult {

View File

@ -13,7 +13,7 @@ open class EnterTanResult protected constructor(
companion object {
fun userEnteredTan(enteredTan: String): EnterTanResult {
return EnterTanResult(enteredTan)
return EnterTanResult(enteredTan.replace(" ", ""))
}
fun userDidNotEnterTan(): EnterTanResult {