Skip to content

Commit

Permalink
pictures in results back
Browse files Browse the repository at this point in the history
  • Loading branch information
michalskop committed Sep 17, 2024
1 parent 3688483 commit e550fe5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/routes/result/ResultCandidateCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ const toggleClick = () => {
? 'rgb(var(--palette-primary-50))'
: 'rgb(var(--palette-primary-90))'
"

:background-image="
candidate?.img_url ||
(candidate?.parties?.length === 1
? candidate?.parties[0].img_url
: undefined)
"
>
<BodyText
:size="order === 1 ? 'large' : 'medium'"
Expand Down

0 comments on commit e550fe5

Please sign in to comment.