mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 13:41:36 +01:00
[Glitch] Fix closed registrations message not appearing in web UI
Port 5fa340931e
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
9f6c175550
commit
8814a1b949
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ import { domain } from 'flavours/glitch/initial_state';
|
|||
import { fetchServer } from 'flavours/glitch/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 {
|
||||
|
|
Loading…
Reference in a new issue