From b1591bfaa062036e24ff9aa6a292b24f53e0cda6 Mon Sep 17 00:00:00 2001 From: Weapie Date: Wed, 4 Nov 2026 13:41:40 +0100 Subject: [PATCH] Fix two small things --- src/App.tsx | 13 ++++++++----- src/CustomerContact.tsx | 11 +++-------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index de636ec..0b99a6d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -99,7 +99,7 @@ function App() { [status, setStatus] = useState(''), [assignee, setAssignee] = useState(''), [tagFilter, setTagFilter] = useState(''), - [sort, setSort] = useState('newest'), + [sort, setSort] = useState('id'), [notifications, setNotifications] = useState([]), [bell, setBell] = useState(false), [theme, setTheme] = useState(localStorage.getItem('syncova-theme') || 'system'), @@ -236,9 +236,11 @@ function App() { .sort((a, b) => sort === 'oldest' ? a.updated_at.localeCompare(b.updated_at) - : sort === 'subject' - ? a.subject.localeCompare(b.subject) - : b.updated_at.localeCompare(a.updated_at), + : sort === 'newest' + ? b.updated_at.localeCompare(a.updated_at) + : sort === 'subject' + ? a.subject.localeCompare(b.subject) + : b.id.localeCompare(a.id), ) const title = queue ? boot.queues.find((q: Data) => q.id === queue)?.name @@ -652,9 +654,10 @@ function App() { ))}
diff --git a/src/CustomerContact.tsx b/src/CustomerContact.tsx index 529ad97..d4f586d 100644 --- a/src/CustomerContact.tsx +++ b/src/CustomerContact.tsx @@ -88,14 +88,9 @@ export function CustomerContact({ onChange={(event) => setEmail(event.target.value)} /> -
- - -
+