Fix registration status
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
d462e6df8f
commit
1b31a0558e
2 changed files with 2 additions and 2 deletions
|
@ -339,7 +339,7 @@ const SwitchingColumnsArea: React.FC<ISwitchingColumnsArea> = ({ children }) =>
|
|||
|
||||
<WrappedRoute path='/about/:slug?' page={DefaultPage} component={AboutPage} publicRoute exact />
|
||||
|
||||
{(features.accountCreation && instance.registrations) && (
|
||||
{(features.accountCreation && instance.registrations.enabled) && (
|
||||
<WrappedRoute path='/signup' page={EmptyPage} component={RegistrationPage} publicRoute exact />
|
||||
)}
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@ export const useRegistrationStatus = () => {
|
|||
|
||||
return {
|
||||
/** Registrations are open. */
|
||||
isOpen: features.accountCreation && instance.registrations,
|
||||
isOpen: features.accountCreation && instance.registrations.enabled,
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue