From 2393dce44844a35444c1eb8c0c58f65b1a8fd4c3 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 13 Apr 2021 10:27:33 +1000 Subject: [PATCH] fix tslint --- ts/components/UserDetailsDialog.tsx | 2 +- ts/session/utils/JobQueue.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/components/UserDetailsDialog.tsx b/ts/components/UserDetailsDialog.tsx index 70e4e0301..70276c53d 100644 --- a/ts/components/UserDetailsDialog.tsx +++ b/ts/components/UserDetailsDialog.tsx @@ -64,7 +64,7 @@ export class UserDetailsDialog extends React.Component { private renderAvatar() { const { avatarPath, pubkey, profileName } = this.props; const size = this.state.isEnlargedImageShown ? 300 : 80; - const userName = name || profileName || pubkey; + const userName = profileName || pubkey; return ( = (() => PromiseLike) | (() => ResultType); // TODO: This needs to replace js/modules/job_queue.js export class JobQueue { - private pending: Promise = Promise.resolve(); + private pending?: Promise = Promise.resolve(); private readonly jobs: Map> = new Map(); public has(id: string): boolean {