没有hot_score/为0的时候不展示

This commit is contained in:
2022-03-24 16:23:15 +08:00
parent 2d35531b1f
commit 180b1e4796

View File

@@ -332,7 +332,9 @@ class FlowItem extends PureComponent {
} }
<Time stamp={info.timestamp} short={!img_clickable} /> <Time stamp={info.timestamp} short={!img_clickable} />
</div> </div>
<span className="box-header">hot score: {info.hot_score}</span> {!!hot_score && (
<span className="box-header">hot score: {info.hot_score}</span>
)}
<div className="box-content"> <div className="box-content">
<HighlightedMarkdown <HighlightedMarkdown
text={info.text} text={info.text}