From df31940883b5d0a5ced4c4cf6c110246acb44557 Mon Sep 17 00:00:00 2001 From: Michael Scoff Date: Mon, 30 Oct 2017 19:45:15 -0700 Subject: [PATCH] Trimm keystore and private key field --- Trust/Wallet/ViewControllers/ImportWalletViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Trust/Wallet/ViewControllers/ImportWalletViewController.swift b/Trust/Wallet/ViewControllers/ImportWalletViewController.swift index cf0a8a7c6..445fe80b7 100644 --- a/Trust/Wallet/ViewControllers/ImportWalletViewController.swift +++ b/Trust/Wallet/ViewControllers/ImportWalletViewController.swift @@ -137,8 +137,8 @@ class ImportWalletViewController: FormViewController { let validatedError = keystoreRow?.section?.form?.validate() guard let errors = validatedError, errors.isEmpty else { return } - let keystoreInput = keystoreRow?.value ?? "" - let privateKeyInput = privateKeyRow?.value ?? "" + let keystoreInput = keystoreRow?.value?.trimmed ?? "" + let privateKeyInput = privateKeyRow?.value?.trimmed ?? "" let password = passwordRow?.value ?? "" displayLoading(text: NSLocalizedString("importWallet.importingIndicatorTitle", value: "Importing wallet...", comment: ""), animated: false)