diff --git a/app/javascript/mastodon/features/interaction_modal/index.jsx b/app/javascript/mastodon/features/interaction_modal/index.jsx
index a8b86b7212..220719a94a 100644
--- a/app/javascript/mastodon/features/interaction_modal/index.jsx
+++ b/app/javascript/mastodon/features/interaction_modal/index.jsx
@@ -331,36 +331,24 @@ class InteractionModal extends React.PureComponent {
}
let signupButton;
- let signUpOrSignInButton;
if (sso_redirect) {
- signUpOrSignInButton = (
-
-
+ signupButton = (
+
+
- )
+ );
+ } else if (registrationsOpen) {
+ signupButton = (
+
+
+
+ );
} else {
- if(registrationsOpen) {
- signupButton = (
-
-
-
- );
- } else {
- signupButton = (
-
- );
- }
-
- signUpOrSignInButton = (
- <>
-
-
-
- {signupButton}
- >
+ signupButton = (
+
);
}
@@ -371,13 +359,6 @@ class InteractionModal extends React.PureComponent {
{actionDescription}
-
-
-
- {signUpOrSignInButton}
-
-
-
diff --git a/app/javascript/mastodon/features/ui/components/sign_in_banner.jsx b/app/javascript/mastodon/features/ui/components/sign_in_banner.jsx
index db85c6cbfb..d5f0c00dca 100644
--- a/app/javascript/mastodon/features/ui/components/sign_in_banner.jsx
+++ b/app/javascript/mastodon/features/ui/components/sign_in_banner.jsx
@@ -17,9 +17,9 @@ const SignInBanner = () => {
let signupButton;
- const signupUrl = useAppSelector((state) => state.getIn(['server', 'server', 'registrations', 'url'], null) || '/auth/sign_up');
+ const signupUrl = useAppSelector((state) => state.getIn(['server', 'server', 'registrations', 'url'], null) || '/auth/sign_up');
- if (sso_redirect) {
+ if (sso_redirect) {
return (