CollectiblesSelectionAdaptor: use default token icon as a fallback

This commit is contained in:
Michał Cieślak 2024-09-04 19:02:49 +02:00 committed by Michał
parent 204d72cd40
commit b8fbeb157f
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ import StatusQ.Core.Utils 0.1
import SortFilterProxyModel 0.2
import utils 1.0
/**
Adaptor transforming input flat model of collectibles into grouped model,
grouped by communities and collections to form expected by components like
@ -78,7 +80,7 @@ QObject {
readonly property string key: model.symbol
readonly property url icon:
model.imageUrl || model.mediaUrl || Qt.resolvedUrl("")
model.imageUrl || model.mediaUrl || Style.png("tokens/DEFAULT-TOKEN")
SortFilterProxyModel { /* 1 */
id: ownershipFiltered