From 308b2c5e19b74c008fdf24efeb04027ba453398e Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Fri, 23 Nov 2018 13:00:09 -0300 Subject: [PATCH] Fix error text when intl object is not provided (#2373) --- app/components/error_text/error_text.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/error_text/error_text.js b/app/components/error_text/error_text.js index 3968265f1..b582ec90e 100644 --- a/app/components/error_text/error_text.js +++ b/app/components/error_text/error_text.js @@ -25,8 +25,8 @@ export default class ErrorText extends PureComponent { const style = getStyleSheet(theme); - if (error.hasOwnProperty('intl')) { - const {intl} = error; + const {intl} = error; + if (intl) { return (