fix(TokensStore): Warnings cleanup

Warnings cleanup
This commit is contained in:
Noelia 2023-11-15 11:43:53 +01:00 committed by Noelia
parent bcf5b64298
commit 611598ec71
1 changed files with 5 additions and 5 deletions

View File

@ -9,13 +9,13 @@ QtObject {
id: root id: root
/* PRIVATE: Modules used to get data from backend */ /* PRIVATE: Modules used to get data from backend */
readonly property var _allTokensModule: walletSectionAllTokens readonly property var _allTokensModule: !!walletSectionAllTokens ? walletSectionAllTokens : null
readonly property var _networksModule: networksModule readonly property var _networksModule: !!networksModule ? networksModule : null
/* This contains the different sources for the tokens list /* This contains the different sources for the tokens list
ex. uniswap list, status tokens list */ ex. uniswap list, status tokens list */
readonly property var sourcesOfTokensModel: SortFilterProxyModel { readonly property var sourcesOfTokensModel: SortFilterProxyModel {
sourceModel: root._allTokensModule.sourcesOfTokensModel sourceModel: !!root._allTokensModule ? root._allTokensModule.sourcesOfTokensModel : null
proxyRoles: ExpressionRole { proxyRoles: ExpressionRole {
function sourceImage(sourceKey) { function sourceImage(sourceKey) {
return Constants.getSupportedTokenSourceImage(sourceKey) return Constants.getSupportedTokenSourceImage(sourceKey)
@ -37,7 +37,7 @@ QtObject {
/* This list contains the complete list of tokens with separate /* This list contains the complete list of tokens with separate
entry per token which has a unique [address + network] pair */ entry per token which has a unique [address + network] pair */
readonly property var flatTokensModel: root._allTokensModule.flatTokensModel readonly property var flatTokensModel: !!root._allTokensModule ? root._allTokensModule.flatTokensModel : null
/* PRIVATE: This model just combines tokens and network information in one */ /* PRIVATE: This model just combines tokens and network information in one */
readonly property LeftJoinModel _joinFlatTokensModel : LeftJoinModel { readonly property LeftJoinModel _joinFlatTokensModel : LeftJoinModel {
@ -74,7 +74,7 @@ QtObject {
there will be one entry per address + network pair */ there will be one entry per address + network pair */
// TODO in #12513 // TODO in #12513
readonly property var tokensBySymbolModel: SortFilterProxyModel { readonly property var tokensBySymbolModel: SortFilterProxyModel {
sourceModel: root._allTokensModule.tokensBySymbolModel sourceModel: !!root._allTokensModule ? root._allTokensModule.tokensBySymbolModel : null
proxyRoles: [ proxyRoles: [
ExpressionRole { ExpressionRole {
function tokenIcon(symbol) { function tokenIcon(symbol) {