X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmodal%2Faccount-setup-modal.component.ts;h=4cb8de2c778dc53db1f5bdf1b415b5483f4f1b43;hb=1ff15061b31245df4248e47228d0a90b07ab3f01;hp=8256f510360ff0499284304c3259d324e5ac83af;hpb=bf80903fde923e0c84226ac442a2a382db74aee4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/modal/account-setup-modal.component.ts b/client/src/app/modal/account-setup-modal.component.ts index 8256f5103..4cb8de2c7 100644 --- a/client/src/app/modal/account-setup-modal.component.ts +++ b/client/src/app/modal/account-setup-modal.component.ts @@ -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