Commit b017f8cc authored by Lukas Burgey's avatar Lukas Burgey

Fix user info listing

parent 5ae80e49
......@@ -120,8 +120,10 @@ export class UserService {
// build userInfoData
const userInfoList = [];
for (const key of ['sub', 'email']) {
userInfoList.push({name: key, info: this.user[key]});
for (const key in data.user) {
if (data.user.hasOwnProperty(key)) {
userInfoList.push({name: key, info: data.user[key]});
}
}
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