fix(OwnerToken): Change owner token subtitle depending on user profile

Fix #12905
This commit is contained in:
Noelia 2024-01-15 13:48:28 +01:00 committed by Noelia
parent 6f3a180f41
commit 42a80c2c10
1 changed files with 6 additions and 2 deletions

View File

@ -61,10 +61,14 @@ StatusScrollView {
function getRemainingInfo(isOwnerToken, isTMasterToken,
remainingSupply, supply, isInfiniteSupply) {
// Owner token use case:
if(isOwnerToken)
// Owner token and owner profile use case:
if(isOwnerToken && root.isOwner)
return qsTr("1 of 1 (you hodl)")
// Owner token but no owner profile use case:
if(isOwnerToken && !root.isOwner)
return qsTr("1 of 1")
// TMaster token use case:
if(isTMasterToken)
return "∞"