File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
app/web-frontend/src/pages/Signup Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ const handleLogout = () => {
9
9
authUser . removeUser ( ) ;
10
10
} ;
11
11
12
+ let isAppUpdated = false ;
13
+
12
14
function Signup ( ) {
13
15
const navigate = useNavigate ( ) ;
14
16
const { updateAppKey } = useAppKeys ( ) ;
@@ -24,19 +26,21 @@ function Signup() {
24
26
25
27
useEffect ( ( ) => {
26
28
handleLogout ( ) ;
29
+ if ( ! isAppUpdated ) { updateAppKey ( ) ; isAppUpdated = true ; }
27
30
} , [ ] ) ;
28
31
29
32
return (
30
- < div style = { {
31
- minHeight : '60vh' ,
32
- display : 'flex' ,
33
- justifyContent : 'center' ,
34
- alignItems : 'center' ,
35
- flexDirection : 'column' ,
36
- gap : '16px' ,
37
- maxWidth : '600px' ,
38
- margin : 'auto' ,
39
- } }
33
+ < div
34
+ style = { {
35
+ minHeight : '60vh' ,
36
+ display : 'flex' ,
37
+ justifyContent : 'center' ,
38
+ alignItems : 'center' ,
39
+ flexDirection : 'column' ,
40
+ gap : '16px' ,
41
+ maxWidth : '600px' ,
42
+ margin : 'auto' ,
43
+ } }
40
44
>
41
45
< h4 style = { { fontSize : '28px' , fontWeight : 'bold' } } >
42
46
Signup with your cardano wallet.
You can’t perform that action at this time.
0 commit comments