From 960e324df3a4604c8d86a0bf6cd19ce7a2852ad3 Mon Sep 17 00:00:00 2001 From: Raven Date: Fri, 16 Mar 2018 16:46:11 +0800 Subject: [PATCH] Fix if condition syntax error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} }