From 88478c15b522c011d3cab53e1eed6fffdfffe3bd Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Thu, 9 Apr 2020 17:42:41 +0200 Subject: [PATCH] Change icon if draw --- src/components/Amicale/Vote/VoteResults.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Amicale/Vote/VoteResults.js b/src/components/Amicale/Vote/VoteResults.js index 6729906..ff5fd6a 100644 --- a/src/components/Amicale/Vote/VoteResults.js +++ b/src/components/Amicale/Vote/VoteResults.js @@ -52,6 +52,7 @@ class VoteResults extends React.Component { resultRenderItem = ({item}: Object) => { const isWinner = this.winnerIds.indexOf(item.id) !== -1; + const isDraw = this.winnerIds.length > 1; return ( { title={item.name} description={item.votes + ' ' + i18n.t('voteScreen.results.votes')} left={props => isWinner - ? + ? : null} titleStyle={{ color: isWinner