You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Fix simple header counters to correctly handle zero, take two
This commit is contained in:
@@ -213,7 +213,6 @@ module.exports = React.createClass({
|
|||||||
const severity = counter.severity;
|
const severity = counter.severity;
|
||||||
const stateKey = counter.stateKey;
|
const stateKey = counter.stateKey;
|
||||||
|
|
||||||
if (title && value && severity) {
|
|
||||||
let span = <span>{ title }: { value }</span>
|
let span = <span>{ title }: { value }</span>
|
||||||
|
|
||||||
if (link) {
|
if (link) {
|
||||||
@@ -241,7 +240,6 @@ module.exports = React.createClass({
|
|||||||
key={"delim" + idx}
|
key={"delim" + idx}
|
||||||
> ─ </span>
|
> ─ </span>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (counters.length > 0) {
|
if (counters.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user