answer_percent

dev_forum
hjm 5 years ago
parent cf10b2cbc7
commit fdea2203a4

@ -127,9 +127,9 @@ class PollDetailTabSecond extends Component{
<span className="color-green">{options.answer_users_count}</span> <span className="color-green">{options.answer_users_count}</span>
<span> <span>
<p className="percentForm fl mr15"> <p className="percentForm fl mr15">
<span className="percentValue" style={{"width":`${parseFloat(options.answer_percent ? options.answer_percent : 0 ).toFixed(2)*100}%`}}></span> <span className="percentValue" style={{"width":`${options.answer_percent * 100}%`}}></span>
</p> </p>
<font className="color-grey-9">{parseFloat(options.answer_percent ? options.answer_percent : 0 ).toFixed(2)*100} %</font> <font className="color-grey-9">{options.answer_percent * 100}%</font>
</span> </span>
</ul> </ul>
{ {

Loading…
Cancel
Save