fix: in profile popup display Username instead of ENS Username if ENS is not verified

Closes #3496.
This commit is contained in:
Michael Bradley, Jr 2021-09-14 09:52:08 -05:00 committed by Iuri Matias
parent e42b1d249e
commit 2e9c5047bb
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ StatusModal {
property var alias: ""
readonly property int innerMargin: 20
property bool isEnsVerified: false
property bool noFooter: false
property bool isBlocked: false
@ -90,7 +90,7 @@ StatusModal {
}
StatusDescriptionListItem {
title: qsTr("ENS username")
title: ((isCurrentUser && profileModel.ens.preferredUsername) || isEnsVerified) ? qsTr("ENS username") : qsTr("Username")
subTitle: isCurrentUser ? profileModel.ens.preferredUsername || userName : userName
tooltip.text: qsTr("Copy to clipboard")
icon.name: "copy"