File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
components/app/recommendations Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11<template >
22 <!-- eslint-disable max-len -->
3- <section >
3+ <section class = " mb-4 sm:mb-16 lg:mb-32 " >
44 <h1
55 class =" text-5xl my-4 text-center md:text-left leading-none onboarding-sub-container-content-heading" >
66 {{recommendations.length}} {{title}}</h1 >
3030 v-on:saveFilter =" saveFilter" ></FilterSliderDropdown >
3131 <MultipleFiltersDropdown
3232 v-bind:position =" 'right'"
33- v-bind:options =" recommendationsAnalysis.uniqueInterests "
33+ v-bind:options =" recommendationsAnalysis.interests "
3434 v-bind:name =" 'interests'"
3535 v-on:saveFilterMultiple =" saveFilterMultiple" ></MultipleFiltersDropdown >
3636 </div >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default {
3838 min: null ,
3939 max: null ,
4040 },
41- uniqueInterests : [],
41+ interests : [],
4242 },
4343 recommendationsAnalysisDone: false ,
4444 }),
@@ -52,6 +52,9 @@ export default {
5252 this .recommendations .sort ((a , b ) => a .distance - b .distance );
5353 for (let i = 0 ; i < this .recommendations .length ; i += 1 ) {
5454 this .recommendations [i].distance = Math .floor (this .recommendations [i].distance );
55+ if (this .recommendations [i].age < 18 ) {
56+ this .recommendations [i].age = 18 ;
57+ }
5558 if (this .recommendationsAnalysis .age .min === null || this .recommendations [i].age < this .recommendationsAnalysis .age .min ) {
5659 this .recommendationsAnalysis .age .min = this .recommendations [i].age ;
5760 }
@@ -74,8 +77,8 @@ export default {
7477 this .recommendations [i].interests = [];
7578 for (let j = 0 ; j < interests .length ; j += 1 ) {
7679 this .recommendations [i].interests .push (interests[j].name );
77- if (this .recommendationsAnalysis .uniqueInterests .indexOf (interests[j].name ) === - 1 ) {
78- this .recommendationsAnalysis .uniqueInterests .push (interests[j].name );
80+ if (this .recommendationsAnalysis .interests .indexOf (interests[j].name ) === - 1 ) {
81+ this .recommendationsAnalysis .interests .push (interests[j].name );
7982 }
8083 }
8184 }
You can’t perform that action at this time.
0 commit comments