File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
frontend/src/components/app/recommendations Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 2828/* eslint-disable no-else-return */
2929/* eslint-disable max-len */
3030
31- import imageMan1 from ' ../../../assets/recommendations/avatars/man1.png' ;
32- import imageMan2 from ' ../../../assets/recommendations/avatars/man2.png' ;
33- import imageWoman1 from ' ../../../assets/recommendations/avatars/woman1.png' ;
34- import imageWoman2 from ' ../../../assets/recommendations/avatars/woman2.png' ;
31+ import imageMan from ' ../../../assets/recommendations/avatars/man1.png' ;
32+ import imageWoman from ' ../../../assets/recommendations/avatars/woman1.png' ;
3533import imageOther from ' ../../../assets/recommendations/avatars/other.png' ;
3634
3735export default {
@@ -54,17 +52,9 @@ export default {
5452 return imageForShowcase;
5553 }
5654 if (this .recommendation .gender === ' male' ) {
57- const number = Math .floor (Math .random () * 11 );
58- if (number % 2 === 0 ) {
59- return imageMan1;
60- }
61- return imageMan2;
55+ return imageMan;
6256 } else if (this .recommendation .gender === ' female' ) {
63- const number = Math .floor (Math .random () * 11 );
64- if (number % 2 === 0 ) {
65- return imageWoman1;
66- }
67- return imageWoman2;
57+ return imageWoman;
6858 }
6959 return imageOther;
7060 },
You can’t perform that action at this time.
0 commit comments