Skip to content

Commit

Permalink
fix: load sidebar spaces once all are available
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed May 28, 2024
1 parent 24c1c26 commit 642c5cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/ui/src/stores/followedSpaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const useFollowedSpacesStore = defineStore('followedSpaces', () => {
)
)
);
fetchSpacesData(newIds);
await fetchSpacesData(newIds);
}

async function toggleSpaceFollow(id: string) {
Expand Down Expand Up @@ -124,6 +124,8 @@ export const useFollowedSpacesStore = defineStore('followedSpaces', () => {
async ([web3, authLoading, authInitiated]) => {
if (!authInitiated || authLoading) return;

followedSpacesLoaded.value = false;

if (!web3) {
followedSpacesIds.value = [];
followedSpacesLoaded.value = true;
Expand Down

0 comments on commit 642c5cc

Please sign in to comment.