Skip to content

Commit

Permalink
Merge pull request #95 from Valik3201/feature/mobileUserNameShow
Browse files Browse the repository at this point in the history
Feature/mobile user name show
  • Loading branch information
Valik3201 committed Jan 6, 2024
2 parents 04f3102 + 7689442 commit c2d37d4
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 c2d37d4

Please sign in to comment.