Add Markets sort-by: change to sort by percent change

This commit is contained in:
Eric Haughee committed 2024-10-03 11:26:33 -07:00
1 parent 8a8aaa752e
commit e434fe0847
3 files changed
+11 -1

No files matched your search

+4
View File
@@ -38,6 +38,10 @@ func (widget *Markets) Update(ctx context.Context) {
markets.SortByAbsChange()
}
if widget.Sort == "change" {
markets.SortByChange()
}
widget.Markets = markets
}