Fix error text when intl object is not provided (#2373)
This commit is contained in:
parent
f42fedf889
commit
308b2c5e19
1 changed files with 2 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue