File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
frontend/src/components/app/recommendations Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -162,28 +162,14 @@ export default {
162162 }
163163 return true ;
164164 },
165- filterOutBlockedUsers (recommendations ) {
166- let i = recommendations .length ;
167- const { blocks } = this .$store .getters .getLoggedInUser ;
168- let blockedIds = [];
169- for (let j = 0 ; j < blocks .length ; j += 1 ) {
170- blockedIds .push (blocks[j].blocked_id );
171- }
172- while (i-- ) {
173- if (blockedIds .indexOf (recommendations[i].id ) !== - 1 ) {
174- recommendations .splice (i, 1 );
175- }
176- }
177- return recommendations;
178- },
179165 saveSingleChoice (... args ) {
180166 const [key , value ] = args;
181167 if (key === ' history' ) {
182168 this .$emit (' update-history' , value);
183169 }
184170 },
185171 setupRecommendations () {
186- this .recommendations = this .filterOutBlockedUsers ( this . recommendationsReceived ) ;
172+ this .recommendations = this .recommendationsReceived ;
187173 this .recommendationsBackup = this .recommendations ;
188174 this .filters .age .min = this .recommendationsAnalysis .age .min ;
189175 this .filters .age .max = this .recommendationsAnalysis .age .max ;
You can’t perform that action at this time.
0 commit comments