Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Character-Detail: Only show info-box rows if the info is not empty.
Browse files Browse the repository at this point in the history
Closes #175
  • Loading branch information
mammuth committed Apr 7, 2016
1 parent 3bc741d commit e98c9ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class CharacterDetails extends Component {
var result = [];
var meta = "";
for(detail of details){
if(detail in this.props.data){
if(detail in this.props.data && this.props.data[detail].length > 1){
switch (detail) {
case "age" : meta = "Age"; break;
case "house" : meta = "House"; break;
Expand Down

0 comments on commit e98c9ef

Please sign in to comment.