From 40b948a1fba629c00f37cb5b0065843fd91f4e98 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 24 May 2023 09:49:26 +0200 Subject: [PATCH] Fix `null` signUp URL handling from #25014 (#25108) --- app/javascript/mastodon/features/ui/components/header.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/ui/components/header.jsx b/app/javascript/mastodon/features/ui/components/header.jsx index f13ceb4a8..04651bab1 100644 --- a/app/javascript/mastodon/features/ui/components/header.jsx +++ b/app/javascript/mastodon/features/ui/components/header.jsx @@ -21,7 +21,7 @@ const Account = connect(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) => ({