From 10edab06a613bc564ae634bc9e179fa7a5c02738 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Feb 2017 18:41:50 +0000 Subject: [PATCH] Don't c+p the complex markup --- src/components/views/avatars/BaseAvatar.js | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/views/avatars/BaseAvatar.js b/src/components/views/avatars/BaseAvatar.js index 456539b374..70c0ed3eae 100644 --- a/src/components/views/avatars/BaseAvatar.js +++ b/src/components/views/avatars/BaseAvatar.js @@ -145,30 +145,30 @@ module.exports = React.createClass({ if (imageUrl === this.state.defaultImageUrl) { const initialLetter = this._getInitialLetter(name); + const textNode = ; + const imgNode = ; if (onClick != null) { return ( - - + {textNode} + {imgNode} ); } else { return ( - - + {textNode} + {imgNode} ); }