summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorS4KH <kh.syerikjan@gmail.com>2016-10-25 21:25:03 +0800
committerenahum <nahumhbl@gmail.com>2016-10-25 10:25:03 -0300
commitf8182022b61a1f110a99fc027c26b20736beef1a (patch)
treeb7c3574b84d1412974dd4eb3479beabf0b97b4b2 /webapp/components
parent3e1fc76bf97703e730038d7bead7a35cbda970cd (diff)
downloadchat-f8182022b61a1f110a99fc027c26b20736beef1a.tar.gz
chat-f8182022b61a1f110a99fc027c26b20736beef1a.tar.bz2
chat-f8182022b61a1f110a99fc027c26b20736beef1a.zip
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
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/signup/signup_controller.jsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/webapp/components/signup/signup_controller.jsx b/webapp/components/signup/signup_controller.jsx
index d34210760..0f0b6c867 100644
--- a/webapp/components/signup/signup_controller.jsx
+++ b/webapp/components/signup/signup_controller.jsx
@@ -79,16 +79,11 @@ export default class SignupController extends React.Component {
}
);
},
- () => {
+ (e) => {
this.setState({ // eslint-disable-line react/no-did-mount-set-state
noOpenServerError: true,
loading: false,
- serverError: (
- <FormattedMessage
- id='signup_user_completed.invalid_invite'
- defaultMessage='The invite link was invalid. Please speak with your Administrator to receive an invitation.'
- />
- )
+ serverError: e.message
});
}
);