Unverified Commit 5fa34093 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix closed registrations message not appearing in web UI (#19508)

Regression from #19486
parent dae954ef
Showing with 3 additions and 3 deletions
+3 -3
...@@ -6,7 +6,7 @@ import { domain } from 'mastodon/initial_state'; ...@@ -6,7 +6,7 @@ import { domain } from 'mastodon/initial_state';
import { fetchServer } from 'mastodon/actions/server'; import { fetchServer } from 'mastodon/actions/server';
const mapStateToProps = state => ({ const mapStateToProps = state => ({
closed_registrations_message: state.getIn(['server', 'server', 'registrations', 'closed_registrations_message']), message: state.getIn(['server', 'server', 'registrations', 'message']),
}); });
export default @connect(mapStateToProps) export default @connect(mapStateToProps)
...@@ -20,11 +20,11 @@ class ClosedRegistrationsModal extends ImmutablePureComponent { ...@@ -20,11 +20,11 @@ class ClosedRegistrationsModal extends ImmutablePureComponent {
render () { render () {
let closedRegistrationsMessage; let closedRegistrationsMessage;
if (this.props.closed_registrations_message) { if (this.props.message) {
closedRegistrationsMessage = ( closedRegistrationsMessage = (
<p <p
className='prose' className='prose'
dangerouslySetInnerHTML={{ __html: this.props.closed_registrations_message }} dangerouslySetInnerHTML={{ __html: this.props.message }}
/> />
); );
} else { } else {
......
Supports Markdown
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