# عرض اسم المستخدم عند تسجيل الدخول في الشريط

**URL:** <https://meta.discourse.org/t/display-username-when-login-in-banner/83024>\
**Category:** Development\
**Created:** [14 مارس 2018، 10:57م UTC](https://meta.discourse.org/t/display-username-when-login-in-banner/83024 "2018-03-14T22:57:11Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [16 مارس 2018، 10:49ص UTC](https://meta.discourse.org/t/display-username-when-login-in-banner/83024/14 "2018-03-16T10:49:27Z")

</div>

You are right … thanks for the warning … was getting this on console when logged out:

```plaintext
null is not an object (evaluating 'api.getCurrentUser().name')

```

Fixed my code above, clearing the error when logged out. Apologies, believe the original script worked fine.

---

_[View the full topic](https://meta.discourse.org/t/display-username-when-login-in-banner/83024)._
