From 11ab988bad184a5427b190dc3088e3dbdd63a54b Mon Sep 17 00:00:00 2001 From: "s.veretennikov" Date: Sun, 12 Jan 2025 15:04:57 +0500 Subject: [PATCH] [trello.com/c/j7S6kruR] Added trimming logic to remove unneeded chars from whitespaces --- Adamant/Modules/Login/LoginViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Adamant/Modules/Login/LoginViewController.swift b/Adamant/Modules/Login/LoginViewController.swift index a60a84cec..29199bcb3 100644 --- a/Adamant/Modules/Login/LoginViewController.swift +++ b/Adamant/Modules/Login/LoginViewController.swift @@ -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 }