From 2fdb4c35405ff785fb8663480f25100826041761 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 4 Dec 2019 16:33:59 +1100 Subject: [PATCH] cleanup code --- ts/components/Avatar.tsx | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/ts/components/Avatar.tsx b/ts/components/Avatar.tsx index 98e6dbcf7..fd57617ff 100644 --- a/ts/components/Avatar.tsx +++ b/ts/components/Avatar.tsx @@ -54,11 +54,9 @@ export class Avatar extends React.PureComponent { return this.renderNoImage(); } - const borderRadius = '50%'; const borderStyle = this.getBorderStyle( borderColor, borderWidth, - borderRadius ); // Generate the seed @@ -213,19 +211,15 @@ export class Avatar extends React.PureComponent { : this.renderIdenticon(); } - private getBorderStyle(color?: string, width?: number, radius?: string) { + private getBorderStyle(color?: string, width?: number) { const borderWidth = typeof width === 'number' ? width : 3; return color - ? { - borderColor: color, - borderStyle: 'solid', - borderWidth: borderWidth, - } - : radius - ? { - borderRadius: radius, - } - : undefined; + ? { + borderColor: color, + borderStyle: 'solid', + borderWidth: borderWidth, + } + : undefined; } }