Fix error text when intl object is not provided (#2373)

This commit is contained in:
Elias Nahum 2018-11-23 13:00:09 -03:00 committed by Saturnino Abril
parent f42fedf889
commit 308b2c5e19

View file

@ -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 (
<FormattedText
id={intl.id}