From: Dessalines Date: Tue, 14 Jan 2020 21:58:14 +0000 (-0500) Subject: Removing placeholder image for avatar upload. X-Git-Url: http://these/git/%7B%60https:/%7B%60css/themes/%22https:/nerdica.net/%7B%60%24%7BarchiveTodayUrl%7D?a=commitdiff_plain;h=f7580f5337a6199c1003fe800fe3f07510e66f94;p=lemmy.git Removing placeholder image for avatar upload. - Fixes #419 --- diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index 30ee3dcf..c95b18bb 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 ? ( + + # + + ) : ( + + )}