Skip to content

Commit 5cd2821

Browse files
committed
recommendation no avatar use only 1 avatar for each gender
1 parent c0670e9 commit 5cd2821

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

frontend/src/components/app/recommendations/RecommendationCard.vue

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
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';
3533
import imageOther from '../../../assets/recommendations/avatars/other.png';
3634
3735
export 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
},

0 commit comments

Comments
 (0)