diff --git a/apps/web/src/pages/auth/InvitationPage.tsx b/apps/web/src/pages/auth/InvitationPage.tsx
index 286b8238936..1b631dd05ad 100644
--- a/apps/web/src/pages/auth/InvitationPage.tsx
+++ b/apps/web/src/pages/auth/InvitationPage.tsx
@@ -54,75 +54,69 @@ export default function InvitationPage() {
};
}, [queryClient]);
- return (
- <>
- {isLoggedIn && (
-
-
- {isAcceptingInvite || isLoggedInAsInvitedUser ? (
- Accepting invite...
- ) : (
- The invite is not valid for the current user. Please log in with the right user.
- )}
-
-
- }
- >
-
-
-
- Go to
+ return isLoggedIn ? (
+
+
+ {isAcceptingInvite || isLoggedInAsInvitedUser ? (
+ Accepting invite...
+ ) : (
+ The invite is not valid for the current user. Please log in with the right user.
+ )}
+
+
+ }
+ >
+
+
+
+ Go to
+
+
+ Dashboard
+
+
+
+ ) : (
+
+
+ {"You've been invited by "}
+
+
+ {inviterFirstName[0].toUpperCase() + inviterFirstName.slice(1)}
+
+
+ {' to join '}
+
+
+ {organizationName}
+
+
+ .
-
- Dashboard
-
-
- )}
-
- {!isLoggedIn && (
-
-
- {"You've been invited by "}
-
-
- {inviterFirstName[0].toUpperCase() + inviterFirstName.slice(1)}
-
-
- {' to join '}
-
-
- {organizationName}
-
-
- .
-
-
- ) : undefined
- }
- >
- {isInitialLoading ? (
-
- ) : (
-
- )}
-
+ ) : undefined
+ }
+ >
+ {isInitialLoading ? (
+
+ ) : (
+
)}
- >
+
);
}
diff --git a/apps/web/src/pages/auth/PasswordResetPage.tsx b/apps/web/src/pages/auth/PasswordResetPage.tsx
index e89ecbb5f61..3f25d99b9b4 100644
--- a/apps/web/src/pages/auth/PasswordResetPage.tsx
+++ b/apps/web/src/pages/auth/PasswordResetPage.tsx
@@ -21,24 +21,19 @@ export function PasswordResetPage({}: Props) {
setShowSentSuccess(true);
}
- return (
- <>
- {!showSentSuccess && (
-
- {!token && }
- {token && }
-
- )}
- {showSentSuccess && (
-
-
-
- )}
- >
+ return showSentSuccess ? (
+
+
+
+ ) : (
+
+ {!token && }
+ {token && }
+
);
}