From 248b0cac0babc36dda2a7b63d8c3ceba9964a084 Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Wed, 17 Apr 2024 20:28:18 +0530 Subject: [PATCH] fix : logo issue in guest login flow --- apps/OpenSign/src/pages/GuestLogin.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/apps/OpenSign/src/pages/GuestLogin.js b/apps/OpenSign/src/pages/GuestLogin.js index a34c3a04e..5bf49fe16 100644 --- a/apps/OpenSign/src/pages/GuestLogin.js +++ b/apps/OpenSign/src/pages/GuestLogin.js @@ -14,9 +14,7 @@ function GuestLogin() { const [EnterOTP, setEnterOtp] = useState(false); const [loading, setLoading] = useState(false); const [isLoading, setIsLoading] = useState(true); - const [appLogo, setAppLogo] = useState( - "https://qikinnovation.ams3.digitaloceanspaces.com/logo.png" - ); + const [appLogo, setAppLogo] = useState(""); useEffect(() => { handleServerUrl(); @@ -31,8 +29,12 @@ function GuestLogin() { if (applogo) { setAppLogo(applogo); } else { - setAppLogo(localStorage.getItem("appLogo") || ""); + setAppLogo( + "https://qikinnovation.ams3.digitaloceanspaces.com/logo.png" + ); } + } else { + setAppLogo("https://qikinnovation.ams3.digitaloceanspaces.com/logo.png"); } //split url in array from '&' @@ -178,7 +180,13 @@ function GuestLogin() { >
- logo + {appLogo && ( + logo + )}