Skip to content

Commit b0d9bcb

Browse files
authored
Update account.html
1 parent 8914835 commit b0d9bcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

account.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
document.getElementById('authSection').style.display = 'none';
145145
document.getElementById('loggedInContent').style.display = 'block';
146146
document.getElementById('welcomeMessage').textContent = `Welcome to your account, ${username}!`;
147+
localStorage.setItem('username', username)
147148

148149
const res = await fetch(`https://scratchgems.onrender.com/api/data/${username}`);
149150
if (!res.ok) throw new Error('Failed to fetch data');

0 commit comments

Comments
 (0)