From 2ffa450e314b92c26723c1be1c0d41e098e25eae Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 12 Aug 2015 00:41:46 +0100 Subject: [PATCH] don't try to show negative power levels --- skins/base/views/molecules/MemberTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skins/base/views/molecules/MemberTile.js b/skins/base/views/molecules/MemberTile.js index d37a0cb5..cf5980b9 100644 --- a/skins/base/views/molecules/MemberTile.js +++ b/skins/base/views/molecules/MemberTile.js @@ -50,7 +50,7 @@ module.exports = React.createClass({ var isMyUser = MatrixClientPeg.get().credentials.userId == this.props.member.userId; var power; - if (this.props.member) { + if (this.props.member && this.props.member.powerLevelNorm > 0) { var img = "img/p/p" + Math.floor(20 * this.props.member.powerLevelNorm / 100) + ".png"; power = ; }