From f8182022b61a1f110a99fc027c26b20736beef1a Mon Sep 17 00:00:00 2001
From: S4KH <kh.syerikjan@gmail.com>
Date: Tue, 25 Oct 2016 21:25:03 +0800
Subject: 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
---
 webapp/components/signup/signup_controller.jsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'webapp/components/signup/signup_controller.jsx')

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
                         });
                     }
                 );
-- 
cgit v1.2.3-1-g7c22

