]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/modal/account-setup-modal.component.ts
Avoid layout shift in account setup modal
[github/Chocobozzz/PeerTube.git] / client / src / app / modal / account-setup-modal.component.ts
index 8256f510360ff0499284304c3259d324e5ac83af..4cb8de2c778dc53db1f5bdf1b415b5483f4f1b43 100644 (file)
@@ -45,11 +45,12 @@ export class AccountSetupModalComponent implements OnInit {
 
   ngOnInit () {
     this.serverConfig = this.serverService.getHTMLConfig()
-    this.user = this.authService.getUser()
 
     this.authService.userInformationLoaded
       .subscribe(
         () => {
+          this.user = this.authService.getUser()
+
           if (this.isUserRoot) return
           if (this.hasAccountAvatar && this.hasAccountDescription) return
           if (this.userService.hasSignupInThisSession()) return