fix: Sort direction toggle not working in listings overview (#306)

Co-authored-by: datenwurm <git@datenwurm.net>
This commit is contained in:
datenwurm
2026-05-08 09:24:20 +02:00
committed by GitHub
parent 2f00966f27
commit fe0a09fe1c

View File

@@ -197,7 +197,7 @@ const ListingsOverview = () => {
<Button
icon={sortDir === 'asc' ? <IconArrowUp /> : <IconArrowDown />}
onClick={() => setSortDir((d) => (d === 'asc' ? 'desc' : 'asc'))}
onClick={() => setSortDir(sortDir === 'asc' ? 'desc' : 'asc')}
title={sortDir === 'asc' ? 'Ascending' : 'Descending'}
/>