diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 2b64fbfa..813faab4 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -163,25 +163,6 @@ export default function CourrierPage() { // Track folder visibility per account const [visibleFolders, setVisibleFolders] = useState>({}); - // Update account folders when mailboxes change - useEffect(() => { - setAccounts(prev => { - const updated = [...prev]; - const accountIndex = updated.findIndex(acc => acc.id === selectedAccount?.id); - if (accountIndex !== -1) { - updated[accountIndex] = { - ...updated[accountIndex], - folders: mailboxes - }; - setVisibleFolders(prev => ({ - ...prev, - [updated[accountIndex].id]: mailboxes - })); - } - return updated; - }); - }, [mailboxes, selectedAccount]); - // Debug accounts state useEffect(() => { console.log('Current accounts state:', accounts);