Skip to content

Commit 12ef435

Browse files
committedApr 16, 2021
fix announcement status
1 parent b4adcfc commit 12ef435

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed
 

‎src/app/components/pages/Announcement.jsx

+4-7
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,12 @@ class Announcement extends Component {
5454
</ul>
5555
);
5656

57-
return (
57+
return notices && notices.size > 0 && notices.toJS()[0].status === 1 ? (
5858
<div className="c-sidebar__module">
59-
<div className="c-sidebar__content">
60-
{notices &&
61-
notices.size > 0 &&
62-
notices.toJS()[0].status === 1 &&
63-
list}
64-
</div>
59+
<div className="c-sidebar__content">{list}</div>
6560
</div>
61+
) : (
62+
<div />
6663
);
6764
}
6865
}

‎src/app/locales/zh.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
"use_only_lowercase_letters": "只使用小写字母",
309309
"use_one_dash": "只使用一个破折号",
310310
"use_spaces_to_separate_tags": "使用空格分隔标签",
311-
"use_only_allowed_characters": "只使用小写字母、数字和一个破折号",
311+
"use_only_allowed_characters": "请使用小写字母、数字或破折号",
312312
"must_start_with_a_letter": "必须从一个字母开始",
313313
"must_end_with_a_letter_or_number": "必须以字母或数字结尾"
314314
},

0 commit comments

Comments
 (0)
Please sign in to comment.