nns-dapp
nns-dapp copied to clipboard
Imported tokens table sorting
Motivation
Important tokens should be displayed together with SNS tokens that have a balance (between the important ck-tokens with a balance and ck-tokens without a balance). All tokens should be sorted alphabetically.
Changes
- Replace
compareTokensWithBalanceFirstwithcompareTokensWithBalanceOrImportedFirstcomparator. - Provide imported tokens id to the token table sorting function.
Tests
- Unit tests were updated.
Todos
- [ ] Add entry to changelog (if necessary). Not yet.