Fix bugs with fetching followers/followings

This commit is contained in:
Lim Chee Aun 2023-09-12 19:20:22 +08:00
parent 641d274d7b
commit aa3033b4ff
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ function AccountInfo({
), ),
), ),
]; ];
} else { } else if (value?.length) {
newValue = value.filter( newValue = value.filter(
(account) => (account) =>
!familiarFollowersCache.current.some( !familiarFollowersCache.current.some(

View file

@ -29,7 +29,7 @@ export default function GenericAccounts({ onClose = () => {} }) {
const loadAccounts = (firstLoad) => { const loadAccounts = (firstLoad) => {
if (!fetchAccounts) return; if (!fetchAccounts) return;
setAccounts([]); if (firstLoad) setAccounts([]);
setUIState('loading'); setUIState('loading');
(async () => { (async () => {
try { try {