Skip to content

Commit

Permalink
fix(TokensStore): Warnings cleanup
Browse files Browse the repository at this point in the history
Warnings cleanup
  • Loading branch information
noeliaSD committed Nov 15, 2023
1 parent bcf5b64 commit 611598e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/app/AppLayouts/Wallet/stores/TokensStore.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ QtObject {
id: root

/* PRIVATE: Modules used to get data from backend */
readonly property var _allTokensModule: walletSectionAllTokens
readonly property var _networksModule: networksModule
readonly property var _allTokensModule: !!walletSectionAllTokens ? walletSectionAllTokens : null
readonly property var _networksModule: !!networksModule ? networksModule : null

/* This contains the different sources for the tokens list
ex. uniswap list, status tokens list */
readonly property var sourcesOfTokensModel: SortFilterProxyModel {
sourceModel: root._allTokensModule.sourcesOfTokensModel
sourceModel: !!root._allTokensModule ? root._allTokensModule.sourcesOfTokensModel : null
proxyRoles: ExpressionRole {
function sourceImage(sourceKey) {
return Constants.getSupportedTokenSourceImage(sourceKey)
Expand All @@ -37,7 +37,7 @@ QtObject {

/* This list contains the complete list of tokens with separate
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 */
readonly property LeftJoinModel _joinFlatTokensModel : LeftJoinModel {
Expand Down Expand Up @@ -74,7 +74,7 @@ QtObject {
there will be one entry per address + network pair */
// TODO in #12513
readonly property var tokensBySymbolModel: SortFilterProxyModel {
sourceModel: root._allTokensModule.tokensBySymbolModel
sourceModel: !!root._allTokensModule ? root._allTokensModule.tokensBySymbolModel : null
proxyRoles: [
ExpressionRole {
function tokenIcon(symbol) {
Expand Down

0 comments on commit 611598e

Please sign in to comment.