Skip to content

Commit 248b0ca

Browse files
fix : logo issue in guest login flow
1 parent fc564ca commit 248b0ca

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

apps/OpenSign/src/pages/GuestLogin.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ function GuestLogin() {
1414
const [EnterOTP, setEnterOtp] = useState(false);
1515
const [loading, setLoading] = useState(false);
1616
const [isLoading, setIsLoading] = useState(true);
17-
const [appLogo, setAppLogo] = useState(
18-
"https://qikinnovation.ams3.digitaloceanspaces.com/logo.png"
19-
);
17+
const [appLogo, setAppLogo] = useState("");
2018

2119
useEffect(() => {
2220
handleServerUrl();
@@ -31,8 +29,12 @@ function GuestLogin() {
3129
if (applogo) {
3230
setAppLogo(applogo);
3331
} else {
34-
setAppLogo(localStorage.getItem("appLogo") || "");
32+
setAppLogo(
33+
"https://qikinnovation.ams3.digitaloceanspaces.com/logo.png"
34+
);
3535
}
36+
} else {
37+
setAppLogo("https://qikinnovation.ams3.digitaloceanspaces.com/logo.png");
3638
}
3739

3840
//split url in array from '&'
@@ -178,7 +180,13 @@ function GuestLogin() {
178180
>
179181
<div className="main_head">
180182
<div className="w-[250px] h-[66px] inline-block overflow-hidden">
181-
<img src={appLogo} className="object-contain h-full" alt="logo" />
183+
{appLogo && (
184+
<img
185+
src={appLogo}
186+
className="object-contain h-full"
187+
alt="logo"
188+
/>
189+
)}
182190
</div>
183191
</div>
184192

0 commit comments

Comments
 (0)