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);
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 (
<div