diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index 30ee3dc..c95b18b 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -130,14 +130,7 @@ export class User extends Component { this.state.username = this.props.match.params.username; this.subscription = WebSocketService.Instance.subject - .pipe( - retryWhen(errors => - errors.pipe( - delay(3000), - take(10) - ) - ) - ) + .pipe(retryWhen(errors => errors.pipe(delay(3000), take(10)))) .subscribe( msg => this.parseMessage(msg), err => console.error(err), @@ -449,16 +442,18 @@ export class User extends Component { htmlFor="file-upload" class="pointer ml-4 text-muted small font-weight-bold" > - + {!this.state.userSettingsForm.avatar ? ( + + # + + ) : ( + + )}