From 3a8e67d484495b869c7e481ee6d404dba7da2a6c Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 2 Nov 2016 17:28:06 -0400 Subject: [PATCH] fixes #178 --- client/modules/IDE/components/SketchList.js | 28 +++++++++++++-------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/client/modules/IDE/components/SketchList.js b/client/modules/IDE/components/SketchList.js index f7919b9d..070308d5 100644 --- a/client/modules/IDE/components/SketchList.js +++ b/client/modules/IDE/components/SketchList.js @@ -38,16 +38,24 @@ class SketchList extends React.Component { {this.props.sketches.map(sketch => - + {(() => { // eslint-disable-line + console.log(this.props.username); + console.log(this.props.user.username); + if (this.props.username === this.props.user.username || this.props.username === undefined) { + return ( + + ); + } + })()} {sketch.name} {moment(sketch.createdAt).format('MMM D, YYYY h:mm:ss A')}