@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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5932,7 +5932,9 @@ function useDerivedState(state) {
|
|
|
5932
5932
|
let count = 0;
|
|
5933
5933
|
for (const acct of state.accounts) {
|
|
5934
5934
|
for (const wallet of acct.wallets) {
|
|
5935
|
-
count += wallet.sources.
|
|
5935
|
+
count += wallet.sources.filter(
|
|
5936
|
+
(s) => s.balance.available.amount > 0
|
|
5937
|
+
).length;
|
|
5936
5938
|
}
|
|
5937
5939
|
}
|
|
5938
5940
|
return count;
|