fix: Add type computed property check to account username
This commit is contained in:
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user