~cytrogen/masto-fe

7bec63e6e24f57954482f87d08b4596d3ec38031 — Renaud Chaput 2 years ago 017fbc7
[Glitch] Fix `null` signUp URL handling from #25014

Port 40b948a1fba629c00f37cb5b0065843fd91f4e98 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M app/javascript/flavours/glitch/features/ui/components/header.jsx
M app/javascript/flavours/glitch/features/ui/components/header.jsx => app/javascript/flavours/glitch/features/ui/components/header.jsx +1 -1
@@ 22,7 22,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) => ({