From b5f2a11bc8318b44b926c3da712ec48d2c85c6be Mon Sep 17 00:00:00 2001 From: Dario Gabriel Lipicar Date: Tue, 26 Mar 2024 17:19:30 -0300 Subject: [PATCH] fix(@wallet): prevent collectibles error due to irrelevant chain state --- src/app/modules/shared_modules/collectibles/controller.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/modules/shared_modules/collectibles/controller.nim b/src/app/modules/shared_modules/collectibles/controller.nim index fd0c03260a..dacb04a73a 100644 --- a/src/app/modules/shared_modules/collectibles/controller.nim +++ b/src/app/modules/shared_modules/collectibles/controller.nim @@ -70,7 +70,11 @@ QtObject: # Otherwise, if any address+chainID is updating, then the whole model is updating # Otherwise, the model is idle for address, statusPerChainID in self.ownershipStatus.pairs: + if not self.addresses.contains(address): + continue for chainID, status in statusPerChainID: + if not self.chainIds.contains(chainID): + continue if status.state == OwnershipStateError: overallState = OwnershipStateError break