Skip to content

Commit

Permalink
Merge pull request #644 from Adamant-im/trello.com/c/j7S6kruR
Browse files Browse the repository at this point in the history
[trello.com/c/j7S6kruR] Added trimming logic to remove unneeded chars from whitespaces
  • Loading branch information
VeretennikovSV authored Jan 13, 2025
2 parents 57d16ac + 11ab988 commit 81e7e3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Adamant/Modules/Login/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ final class LoginViewController: FormViewController {
return false
})
}.onCellSelection { [weak self] (_, row) in
guard let row: PasswordRow = self?.form.rowBy(tag: Rows.passphrase.tag), let passphrase = row.value else {
guard let row: PasswordRow = self?.form.rowBy(tag: Rows.passphrase.tag),
let passphrase = row.value?.trimmingCharacters(in: .whitespaces) else {
return
}

Expand Down

0 comments on commit 81e7e3e

Please sign in to comment.