From 6a716fb3b3893a15e7c5b2dd5927119c7c16e91e Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:41:54 +0200 Subject: [PATCH 1/2] Update InitialScreen.tsx --- .../Modules/LoginModule/InitialScreen.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx b/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx index cdaffe7371..b3adbab216 100644 --- a/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx +++ b/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx @@ -415,15 +415,17 @@ const InitialScreen = ({ className }: IInitialScreen) => { Get Started )} - { !error && loginMode !== "web3" && loginMode !== "email" - ? - : loginMode === "email" - ? - : wallet - ? !isConnecting - ? - : - : + { !error && ( + loginMode !== "web3" && loginMode !== "email" + ? + : loginMode === "email" + ? + : wallet + ? !isConnecting + ? + : + : + ) } {!!error && ( <> From 1a52847eb8ecc93cb106b72543d304157ebc5370 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:50:07 +0200 Subject: [PATCH 2/2] Update packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx --- .../src/Components/Modules/LoginModule/InitialScreen.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx b/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx index b3adbab216..358ad4076e 100644 --- a/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx +++ b/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx @@ -415,7 +415,7 @@ const InitialScreen = ({ className }: IInitialScreen) => { Get Started )} - { !error && ( + {!error && ( loginMode !== "web3" && loginMode !== "email" ? : loginMode === "email" @@ -425,8 +425,7 @@ const InitialScreen = ({ className }: IInitialScreen) => { ? : : - ) - } + )} {!!error && ( <>