diff --git a/index.js b/index.js
index fff2c1e..8edd640 100644
--- a/index.js
+++ b/index.js
@@ -171,7 +171,7 @@ export default class Barcode extends PureComponent {
- if (typeof(this.props.text) != 'undefined') {
+ { typeof(this.props.text) != 'undefined' &&
{this.props.text}
}