From 6166024d153c21c15baeb0fd41513dab794e66cb Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 17 Feb 2017 09:59:56 -0800 Subject: [PATCH] [fix] NODE_ENV check in 'flattenStyle' --- src/apis/StyleSheet/flattenStyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/StyleSheet/flattenStyle.js b/src/apis/StyleSheet/flattenStyle.js index ae914b44..19fe44e1 100644 --- a/src/apis/StyleSheet/flattenStyle.js +++ b/src/apis/StyleSheet/flattenStyle.js @@ -24,7 +24,7 @@ function flattenStyle(style) { return undefined; } - if (process.env.NODE !== 'production') { + if (process.env.NODE_ENV !== 'production') { invariant(style !== true, 'style may be false but not true'); }