From dbe9b543264ff075f746ab02ad4810dc930c1fdc Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Fri, 17 Sep 2021 09:48:09 +1000 Subject: [PATCH] fix(@desktop/contacts): Double validation for incorrect ENS name The string stored in the translation had been doubled-up, so when a validation error occurred, the doubled-up string appeared. The fix removes the currently in use translation. --- ui/app/AppLayouts/Profile/Sections/ContactsContainer.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Profile/Sections/ContactsContainer.qml b/ui/app/AppLayouts/Profile/Sections/ContactsContainer.qml index 64efacb3b7..eb6d9e27f6 100644 --- a/ui/app/AppLayouts/Profile/Sections/ContactsContainer.qml +++ b/ui/app/AppLayouts/Profile/Sections/ContactsContainer.qml @@ -130,9 +130,7 @@ Item { function validate(value) { if (!Utils.isChatKey(value) && !Utils.isValidETHNamePrefix(value)) { - //% "Enter a valid chat key or ENS username" - //% "Enter a valid chat key or ENS username" - addContactModal.validationError = qsTrId("enter-a-valid-chat-key-or-ens-username"); + addContactModal.validationError = qsTr("Enter a valid chat key or ENS username"); } else if (profileModel.profile.pubKey === value) { //% "You can't add yourself" addContactModal.validationError = qsTrId("you-can-t-add-yourself");