Guarded against error when hiding feature description portion of card

This commit is contained in:
Stefan Zermatten
2017-09-08 09:46:58 +02:00
parent 0af905699a
commit f600999c5f

View File

@@ -57,7 +57,7 @@ Template.features.helpers({
return removeDuplicateProficiencies(profs);
},
hasCharacters: function(string){
return string.match(/\S/);
return string && string.match(/\S/);
},
});