Fix accounts loading error for non-server-side notifs grouping

This commit is contained in:
Lim Chee Aun 2024-10-01 16:54:42 +08:00
parent da532032a8
commit 334362487a

View file

@ -447,9 +447,9 @@ function Notification({
console.debug('RENDER Notification', notification.id); console.debug('RENDER Notification', notification.id);
const sameCount = const diffCount =
notificationsCount > 0 && notificationsCount <= sampleAccounts?.length; notificationsCount > 0 && notificationsCount > sampleAccounts?.length;
const expandAccounts = sameCount ? 'local' : 'remote'; const expandAccounts = diffCount ? 'remote' : 'local';
return ( return (
<div <div