Fix `null` signUp URL handling from #25014 (#25108)

lolsob-rspec
Renaud Chaput 2023-05-24 09:49:26 +02:00 committed by GitHub
parent 6077f3e24c
commit 9be9f4f5e2
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const Account = connect(state => ({
)); ));
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
signupUrl: state.getIn(['server', 'server', 'registrations', 'url'], '/auth/sign_up'), signupUrl: state.getIn(['server', 'server', 'registrations', 'url'], null) || '/auth/sign_up',
}); });
const mapDispatchToProps = (dispatch) => ({ const mapDispatchToProps = (dispatch) => ({