File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ function GuestLogin() {
14
14
const [ EnterOTP , setEnterOtp ] = useState ( false ) ;
15
15
const [ loading , setLoading ] = useState ( false ) ;
16
16
const [ isLoading , setIsLoading ] = useState ( true ) ;
17
- const [ appLogo , setAppLogo ] = useState (
18
- "https://qikinnovation.ams3.digitaloceanspaces.com/logo.png"
19
- ) ;
17
+ const [ appLogo , setAppLogo ] = useState ( "" ) ;
20
18
21
19
useEffect ( ( ) => {
22
20
handleServerUrl ( ) ;
@@ -31,8 +29,12 @@ function GuestLogin() {
31
29
if ( applogo ) {
32
30
setAppLogo ( applogo ) ;
33
31
} else {
34
- setAppLogo ( localStorage . getItem ( "appLogo" ) || "" ) ;
32
+ setAppLogo (
33
+ "https://qikinnovation.ams3.digitaloceanspaces.com/logo.png"
34
+ ) ;
35
35
}
36
+ } else {
37
+ setAppLogo ( "https://qikinnovation.ams3.digitaloceanspaces.com/logo.png" ) ;
36
38
}
37
39
38
40
//split url in array from '&'
@@ -178,7 +180,13 @@ function GuestLogin() {
178
180
>
179
181
< div className = "main_head" >
180
182
< 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
+ ) }
182
190
</ div >
183
191
</ div >
184
192
You can’t perform that action at this time.
0 commit comments