nns-dapp icon indicating copy to clipboard operation
nns-dapp copied to clipboard

Imported tokens table sorting

Open mstrasinskis opened this issue 1 year ago • 0 comments

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 compareTokensWithBalanceFirst with compareTokensWithBalanceOrImportedFirst comparator.
  • Provide imported tokens id to the token table sorting function.

Tests

  • Unit tests were updated.

Todos

  • [ ] Add entry to changelog (if necessary). Not yet.

mstrasinskis avatar Aug 06 '24 15:08 mstrasinskis