X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmodal%2Faccount-setup-warning-modal.component.ts;h=b999a3407d54935155d61928938bc4acec236835;hb=01a3c07a7913891d4830797403b3865d53f0af61;hp=c78de447d856f6da52898f42005bc0416063d522;hpb=8f581725651c4b2c213d75fc028e306bbf239d3e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/modal/account-setup-warning-modal.component.ts b/client/src/app/modal/account-setup-warning-modal.component.ts index c78de447d..b999a3407 100644 --- a/client/src/app/modal/account-setup-warning-modal.component.ts +++ b/client/src/app/modal/account-setup-warning-modal.component.ts @@ -1,6 +1,7 @@ import { Component, ElementRef, ViewChild } from '@angular/core' import { Notifier, ServerService, User, UserService } from '@app/core' import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' +import { logger } from '@root-helpers/logger' import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' @Component({ @@ -32,7 +33,7 @@ export class AccountSetupWarningModalComponent { } hasAccountAvatar (user: User) { - return !!user.account.avatar + return user.account.avatars.length !== 0 } hasAccountDescription (user: User) { @@ -71,7 +72,7 @@ export class AccountSetupWarningModalComponent { this.userService.updateMyProfile({ noAccountSetupWarningModal: true }) .subscribe({ - next: () => console.log('We will not open the account setup modal again.'), + next: () => logger.info('We will not open the account setup modal again.'), error: err => this.notifier.error(err.message) })