From 641d22a7cc187c7a55bb91904f7091bd3c96967d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 3 Mar 2024 09:48:53 +0800 Subject: [PATCH] Default density sort to desc --- src/pages/catchup.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/catchup.jsx b/src/pages/catchup.jsx index f5ce15cf..34e7571c 100644 --- a/src/pages/catchup.jsx +++ b/src/pages/catchup.jsx @@ -1088,10 +1088,11 @@ function Catchup() { checked={sortBy === key} onChange={() => { setSortBy(key); - const order = - /(replies|favourites|reblogs|density)/.test(key) - ? 'desc' - : 'asc'; + const order = /(replies|favourites|reblogs)/.test( + key, + ) + ? 'desc' + : 'asc'; setSortOrder(order); }} // disabled={key === 'account' && selectedAuthor}