@swype-org/react-sdk 0.1.171 → 0.1.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5935,7 +5935,9 @@ function useDerivedState(state) {
5935
5935
  let count = 0;
5936
5936
  for (const acct of state.accounts) {
5937
5937
  for (const wallet of acct.wallets) {
5938
- count += wallet.sources.length;
5938
+ count += wallet.sources.filter(
5939
+ (s) => s.balance.available.amount > 0
5940
+ ).length;
5939
5941
  }
5940
5942
  }
5941
5943
  return count;