From 334362487a183212f87ba25e3052b635410f17b4 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 1 Oct 2024 16:54:42 +0800 Subject: [PATCH] Fix accounts loading error for non-server-side notifs grouping --- src/components/notification.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index e6758ed0..2ce66292 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -447,9 +447,9 @@ function Notification({ console.debug('RENDER Notification', notification.id); - const sameCount = - notificationsCount > 0 && notificationsCount <= sampleAccounts?.length; - const expandAccounts = sameCount ? 'local' : 'remote'; + const diffCount = + notificationsCount > 0 && notificationsCount > sampleAccounts?.length; + const expandAccounts = diffCount ? 'remote' : 'local'; return (