File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
frontend/src/components/app/recommendations Expand file tree Collapse file tree 1 file changed +11
-5
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' ;
35+ import imageOther from ' ../../../assets/recommendations/avatars/other.png' ;
36+
3137export default {
3238 props: [' recommendation' ],
3339 methods: {
@@ -50,17 +56,17 @@ export default {
5056 if (this .recommendation .gender === ' male' ) {
5157 const number = Math .floor (Math .random () * 11 );
5258 if (number % 2 === 0 ) {
53- return ' ../../../assets/recommendations/avatars/man1.png ' ;
59+ return imageMan1 ;
5460 }
55- return ' ../../../assets/recommendations/avatars/man2.png ' ;
61+ return imageMan2 ;
5662 } else if (this .recommendation .gender === ' female' ) {
5763 const number = Math .floor (Math .random () * 11 );
5864 if (number % 2 === 0 ) {
59- return ' ../../../assets/recommendations/avatars/woman1.png ' ;
65+ return imageWoman1 ;
6066 }
61- return ' ../../../assets/recommendations/avatars/woman2.png ' ;
67+ return imageWoman2 ;
6268 }
63- return ' ../../../assets/recommendations/avatars/other.png ' ;
69+ return imageOther ;
6470 },
6571 },
6672};
You can’t perform that action at this time.
0 commit comments