From 514f038f44d2bab1c49e6e374c65fbd6a0517e18 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Fri, 28 Apr 2017 10:11:26 -0400
Subject: Fix error not appearing when updating to existing username (#6255)

---
 webapp/actions/user_actions.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/actions/user_actions.jsx')

diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index aa43dafda..f6c9e0f60 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -532,7 +532,7 @@ export function updateUser(user, type, success, error) {
             if (data && success) {
                 success(data);
             } else if (data == null && error) {
-                const serverError = getState().requests.users.updateUser.error;
+                const serverError = getState().requests.users.updateMe.error;
                 error({id: serverError.server_error_id, ...serverError});
             }
         }
-- 
cgit v1.2.3-1-g7c22

