From 45c872df28b10f6197a381704763084ee6362840 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 31 Mar 2023 19:21:27 +0800 Subject: [PATCH] Sometimes, a bracket makes a huge difference --- src/pages/status.jsx | 103 ++++++++++++++++++++++--------------------- 1 file changed, 52 insertions(+), 51 deletions(-) diff --git a/src/pages/status.jsx b/src/pages/status.jsx index be6aa0b8..e6bb5a30 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -653,62 +653,63 @@ function StatusPage() { enableTranslate /> - {uiState !== 'loading' && !authenticated ? ( -
-

- You're not logged in. Interactions (reply, boost, - etc) are not possible. -

- - Log in - -
- ) : ( - !sameInstance && ( + {uiState !== 'loading' && + (!authenticated ? (

- This post is from another instance ( - {instance}). Interactions (reply, boost, + You're not logged in. Interactions (reply, boost, etc) are not possible.

- + + Log in +
- ) - )} + ) : ( + !sameInstance && ( +
+

+ This post is from another instance ( + {instance}). Interactions (reply, boost, + etc) are not possible. +

+ +
+ ) + ))} ) : (