Skip to content

Commit

Permalink
fix: Removed duplicated text in Token Popup
Browse files Browse the repository at this point in the history
Made sure Token List title is only appended if sourceName does not already ends with such string
  • Loading branch information
Seitseman committed Apr 15, 2024
1 parent 8be1453 commit 5aa9b4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/app/AppLayouts/Profile/popups/TokenListPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ StatusDialog {
readonly property int symbolColumnWidth: 90
readonly property int addressColumnWidth: 106
readonly property int externalLinkBtnWidth: 32
readonly property string tokenListTemplate: qsTr("Token List")
}

width: 521 // by design
Expand Down Expand Up @@ -65,7 +66,9 @@ StatusDialog {
}

header: StatusDialogHeader {
headline.title: qsTr("%1 Token List").arg(root.sourceName)

headline.title: "%1 %2".arg(root.sourceName)
.arg(root.sourceName && root.sourceName.endsWith(d.tokenListTemplate) ? "" : d.tokenListTemplate)
headline.subtitle: qsTr("%n token(s)", "", root.tokensCount)
actions.closeButton.onClicked: root.close()
leftComponent: StatusSmartIdenticon {
Expand Down

0 comments on commit 5aa9b4a

Please sign in to comment.