diff --git a/src/main.js b/src/main.js index 250404e..730979e 100644 --- a/src/main.js +++ b/src/main.js @@ -90,7 +90,7 @@ var Shape = React.createClass({ }, _setText: function _setText(text) { - if (text) { + if (typeof text !== 'undefined' && text !== null) { this.state.shape.setText(text); } }