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.
This commit is contained in:
Eric Mastro 2021-09-17 09:48:09 +10:00 committed by Iuri Matias
parent 2448b710b4
commit dbe9b54326

View File

@ -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");