fix(@wallet): prevent collectibles error due to irrelevant chain state

This commit is contained in:
Dario Gabriel Lipicar 2024-03-26 17:19:30 -03:00 committed by dlipicar
parent 7047ecf2b6
commit b5f2a11bc8

View File

@ -70,7 +70,11 @@ QtObject:
# Otherwise, if any address+chainID is updating, then the whole model is updating # Otherwise, if any address+chainID is updating, then the whole model is updating
# Otherwise, the model is idle # Otherwise, the model is idle
for address, statusPerChainID in self.ownershipStatus.pairs: for address, statusPerChainID in self.ownershipStatus.pairs:
if not self.addresses.contains(address):
continue
for chainID, status in statusPerChainID: for chainID, status in statusPerChainID:
if not self.chainIds.contains(chainID):
continue
if status.state == OwnershipStateError: if status.state == OwnershipStateError:
overallState = OwnershipStateError overallState = OwnershipStateError
break break