Skip to content

Commit

Permalink
user name text content
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekstanczak committed Jan 6, 2024
1 parent 2cee77a commit 7689442
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/auth/authStateListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export const onAuthStateChangedListener = userNameDisplay => {
if (user) {
const displayName = user.displayName;

const userNameDisplayMobile = document.querySelector('#user-name-display-mobile');

userNameDisplay.textContent = displayName;
userNameDisplayMobile.textContent = displayName;
userProfile.classList.remove('hidden');
userButton.classList.remove('hidden');
signUpButton.classList.add('hidden');
Expand Down

0 comments on commit 7689442

Please sign in to comment.