@swype-org/react-sdk 0.1.162 → 0.1.163
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1776,8 +1776,8 @@ function buildSelectSourceChoices(options) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
return chainChoices.map((chain) => ({
|
|
1778
1778
|
...chain,
|
|
1779
|
-
tokens: chain.tokens.filter((t) => t.balance > 0)
|
|
1780
|
-
})).filter((chain) => chain.tokens.length > 0);
|
|
1779
|
+
tokens: chain.tokens.filter((t) => t.balance > 0).sort((a, b) => b.balance - a.balance)
|
|
1780
|
+
})).filter((chain) => chain.tokens.length > 0).sort((a, b) => b.balance - a.balance);
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
1783
|
// src/paymentReducer.ts
|