# Error while trying to change the username of an inactive account

**URL:** <https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986>\
**Category:** Bug\
**Created:** [4 Marzo, 2015 21:10 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986 "2015-03-04T21:10:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Stefan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stefan/32/104823_2.png) [@Stefan](https://meta.discourse.org/u/Stefan)\
**Post date:** [4 Marzo, 2015 21:10 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986/1 "2015-03-04T21:10:15Z")

</div>

As an admin, I’ve tried to change the username of an inactive account (i.e. registered but never activated) and I’ve go this in error logs:

```
Uncaught TypeError: Cannot read property 'name' of undefined
Url: http://vamist.ro/assets/vendor-6324f2f5fe44e5bec2112f4d797c1864.js
Line: 15
Column: 69 
Window Location: http://vamist.ro/users/10kerviel/preferences/username

```

For activated account I don’t have any errors.

---

_[View the full topic](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986)._
