mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 12:29:37 +00:00
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:
parent
2448b710b4
commit
dbe9b54326
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user