Skip to content

Commit

Permalink
[BWA-32] Sort verification codes by issuer (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPatrck authored Jun 14, 2024
1 parent cbb469e commit 7ca1eab
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ fun List<VerificationCodeItem>.toViewState(
ItemListingState.ViewState.Content(
favoriteItems = this
.filter { it.favorite }
.sortedBy { it.issuer }
.map {
it.toDisplayItem(alertThresholdSeconds = alertThresholdSeconds)
},
itemList = filterNot { it.favorite }
.sortedBy { it.issuer }
.map {
it.toDisplayItem(alertThresholdSeconds = alertThresholdSeconds)
},
Expand Down

0 comments on commit 7ca1eab

Please sign in to comment.