Skip to content

Commit 323c67a

Browse files
committed
remove auth state from header when on signup page
1 parent 6ef29a4 commit 323c67a

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

app/web-frontend/src/pages/Signup/index.jsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const handleLogout = () => {
99
authUser.removeUser();
1010
};
1111

12+
let isAppUpdated = false;
13+
1214
function Signup() {
1315
const navigate = useNavigate();
1416
const { updateAppKey } = useAppKeys();
@@ -24,19 +26,21 @@ function Signup() {
2426

2527
useEffect(() => {
2628
handleLogout();
29+
if (!isAppUpdated) { updateAppKey(); isAppUpdated = true; }
2730
}, []);
2831

2932
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+
}}
4044
>
4145
<h4 style={{ fontSize: '28px', fontWeight: 'bold' }}>
4246
Signup with your cardano wallet.

0 commit comments

Comments
 (0)