fix(ButCrypto): Fixing assets filtering when the selected chain changes

This commit is contained in:
Alex Jbanca 2025-01-24 12:14:38 +02:00 committed by Alex Jbanca
parent 1d430c53e2
commit 2098300d8f

View File

@ -32,7 +32,11 @@ QObject {
root.selectedProviderSupportedAssetsArray.includes(addPerChain.chainId+addPerChain.address)
})
}
expression: isSupportedByProvider(model.addressPerChain)
expression: {
root.selectedChainId //dependency
root.selectedProviderSupportedAssetsArray //dependency
isSupportedByProvider(model.addressPerChain)
}
expectedRoles: ["addressPerChain"]
enabled: !!root.selectedProviderSupportedAssetsArray && root.selectedProviderSupportedAssetsArray.length > 0 && root.selectedChainId !== -1
}