fix: Add type computed property check to account username

This commit is contained in:
Susmitha Girumala committed 2020-09-21 10:45:45 -04:00
1 parent fd70d66071
commit 1f52f02727
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ export default class AccountModel extends GeneratedAccountModel {
* Convenience for getting username in account.
* @type {string}
*/
@computed('attributes.{login_name}')
@computed('type', 'attributes.{login_name}')
get username() {
let username = '';
switch (this.type) {