4305 - Assigned error.id and message to <FormattedMessage/> component when error is returned. (#4306)

* Auto Changes

* Fixed error message for max users per team

* Update config.json

* Update config.json

* Removed formatted message component and directly assigned e.message
Этот коммит содержится в:
S4KH
2016-10-25 21:25:03 +08:00
коммит произвёл enahum
родитель 3e1fc76bf9
Коммит f8182022b6

Просмотреть файл

@@ -79,16 +79,11 @@ export default class SignupController extends React.Component {
} }
); );
}, },
() => { (e) => {
this.setState({ // eslint-disable-line react/no-did-mount-set-state this.setState({ // eslint-disable-line react/no-did-mount-set-state
noOpenServerError: true, noOpenServerError: true,
loading: false, loading: false,
serverError: ( serverError: e.message
<FormattedMessage
id='signup_user_completed.invalid_invite'
defaultMessage='The invite link was invalid. Please speak with your Administrator to receive an invitation.'
/>
)
}); });
} }
); );