Fix disabled follow button

This commit is contained in:
Lim Chee Aun 2023-09-16 08:52:24 +08:00
parent e102a9f925
commit ad831fae35

View file

@ -583,8 +583,7 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
accountInfoStates.familiarFollowers = accountInfoStates.familiarFollowers =
followers[0].accounts.slice(0, FAMILIAR_FOLLOWERS_LIMIT); followers[0].accounts.slice(0, FAMILIAR_FOLLOWERS_LIMIT);
if (standalone) return; if (!standalone) {
const { value: statuses } = await fetchStatuses; const { value: statuses } = await fetchStatuses;
console.log('fetched statuses', statuses); console.log('fetched statuses', statuses);
const stats = { const stats = {
@ -620,6 +619,7 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
console.log('posting stats', stats); console.log('posting stats', stats);
setPostingStats(stats); setPostingStats(stats);
}
} catch (e) { } catch (e) {
console.error(e); console.error(e);
} }