about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-10-28 19:34:22 +0200
committerGitHub <noreply@github.com>2022-10-28 19:34:22 +0200
commit5fa340931e2bd39a4bcccc9a97ad58e13a2d56ab (patch)
treefdfe29a5a752bf07c78e00e24e9bd76d794a4464
parentdae954ef111b8e0ab17812d156f6c955b77d9859 (diff)
Fix closed registrations message not appearing in web UI (#19508)
Regression from #19486
-rw-r--r--app/javascript/mastodon/features/closed_registrations_modal/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/mastodon/features/closed_registrations_modal/index.js b/app/javascript/mastodon/features/closed_registrations_modal/index.js
index 062045b83..275bd50aa 100644
--- a/app/javascript/mastodon/features/closed_registrations_modal/index.js
+++ b/app/javascript/mastodon/features/closed_registrations_modal/index.js
@@ -6,7 +6,7 @@ import { domain } from 'mastodon/initial_state';
 import { fetchServer } from 'mastodon/actions/server';
 
 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)
@@ -20,11 +20,11 @@ class ClosedRegistrationsModal extends ImmutablePureComponent {
   render () {
     let closedRegistrationsMessage;
 
-    if (this.props.closed_registrations_message) {
+    if (this.props.message) {
       closedRegistrationsMessage = (
         <p
           className='prose'
-          dangerouslySetInnerHTML={{ __html: this.props.closed_registrations_message }}
+          dangerouslySetInnerHTML={{ __html: this.props.message }}
         />
       );
     } else {