Commit b017f8cc authored by Lukas Burgey's avatar Lukas Burgey

Fix user info listing

parent 5ae80e49
...@@ -120,8 +120,10 @@ export class UserService { ...@@ -120,8 +120,10 @@ export class UserService {
// build userInfoData // build userInfoData
const userInfoList = []; const userInfoList = [];
for (const key of ['sub', 'email']) { for (const key in data.user) {
userInfoList.push({name: key, info: this.user[key]}); if (data.user.hasOwnProperty(key)) {
userInfoList.push({name: key, info: data.user[key]});
}
} }
this.userInfoData = new MatTableDataSource(userInfoList); this.userInfoData = new MatTableDataSource(userInfoList);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment