@@ -99,22 +99,22 @@ const StaffPicks: FC = () => {
99
99
) ;
100
100
}
101
101
102
- const profiles = [
102
+ const accounts = [
103
103
...( staffPicks ?. batch1 ?. items || [ ] ) ,
104
104
...( staffPicks ?. batch2 ?. items || [ ] ) ,
105
105
...( staffPicks ?. batch3 ?. items || [ ] )
106
106
] ;
107
- const randomProfiles = profiles . sort ( ( ) => Math . random ( ) - Math . random ( ) ) ;
108
- const filteredProfiles = randomProfiles
107
+ const randomAccounts = accounts . sort ( ( ) => Math . random ( ) - Math . random ( ) ) ;
108
+ const filteredAccounts = randomAccounts
109
109
. filter (
110
- ( profile ) =>
111
- ! profile . operations . isBlockedByMe . value &&
112
- ! profile . operations . isFollowedByMe . value &&
113
- currentAccount ?. id !== profile . id
110
+ ( account ) =>
111
+ ! account . operations . isBlockedByMe . value &&
112
+ ! account . operations . isFollowedByMe . value &&
113
+ currentAccount ?. id !== account . id
114
114
)
115
115
. slice ( 0 , 5 ) ;
116
116
117
- if ( filteredProfiles . length === 0 ) {
117
+ if ( filteredAccounts . length === 0 ) {
118
118
return null ;
119
119
}
120
120
@@ -125,12 +125,12 @@ const StaffPicks: FC = () => {
125
125
error = { picksError || profilesError }
126
126
title = "Failed to load recommendations"
127
127
/>
128
- { filteredProfiles . map ( ( profile ) => (
129
- < div className = "w-full truncate pr-1" key = { profile . id } >
128
+ { filteredAccounts . map ( ( account ) => (
129
+ < div className = "w-full truncate pr-1" key = { account . id } >
130
130
< SingleAccount
131
- hideFollowButton = { currentAccount ?. id === profile . id }
131
+ hideFollowButton = { currentAccount ?. id === account . id }
132
132
hideUnfollowButton
133
- account = { profile as Profile }
133
+ account = { account as Profile }
134
134
source = { ProfileLinkSource . StaffPicks }
135
135
/>
136
136
</ div >
0 commit comments