Skip to content

Commit

Permalink
fix: loader on friends page is displayed when data is already loaded (#…
Browse files Browse the repository at this point in the history
…263)

**Describe the pull request**

The loader on friends page is displayed when the data is already loaded
and cause blink effect.

**Checklist**

- [x] I have linked the relative issue to this pull request
- [x] I have made the modifications or added tests related to my PR
- [x] I have added/updated the documentation for my RP
- [x] I put my PR in Ready for Review only when all the checklist is
checked

**Breaking changes ?**
no
  • Loading branch information
42atomys authored Nov 21, 2022
1 parent b7feea2 commit c5e1a56
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions web/ui/src/pages/friends/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,16 @@ const IndexPage: NextPage<PageProps> = () => {
</span>
</div>
)}
{myFollowing?.map((user) => (
<UserCard
key={user?.duoLogin}
user={user as User}
location={user?.lastLocation}
refetchQueries={[MyFollowingsDocument]}
className="m-2 hover:scale-[102%] hover:border-indigo-500"
/>
))}
{!isFirstLoading(networkStatus) &&
myFollowing?.map((user) => (
<UserCard
key={user?.duoLogin}
user={user as User}
location={user?.lastLocation}
refetchQueries={[MyFollowingsDocument]}
className="m-2 hover:scale-[102%] hover:border-indigo-500"
/>
))}
</PageContent>
</PageContainer>
</SidebarProvider>
Expand Down

0 comments on commit c5e1a56

Please sign in to comment.