Commit a9c1b886 authored by afc163's avatar afc163

Fix react className warning

parent 2b626f22
......@@ -318,7 +318,7 @@ export default class Analysis extends Component {
{
rankingListData.map((item, i) => (
<li key={item.title}>
<span className={(i < 3) && styles.active}>{i + 1}</span>
<span className={(i < 3) ? styles.active : ''}>{i + 1}</span>
<span>{item.title}</span>
<span>{numeral(item.total).format('0,0')}</span>
</li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment