mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Implemented Profile component
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// @flow
|
||||
import type { Me } from "@scm-manager/ui-components";
|
||||
import type { Me } from "@scm-manager/ui-types";
|
||||
import * as types from "./types";
|
||||
|
||||
import { apiClient, UNAUTHORIZED_ERROR } from "@scm-manager/ui-components";
|
||||
@@ -136,7 +136,11 @@ const callFetchMe = (link: string): Promise<Me> => {
|
||||
return response.json();
|
||||
})
|
||||
.then(json => {
|
||||
return { name: json.name, displayName: json.displayName };
|
||||
return {
|
||||
name: json.name,
|
||||
displayName: json.displayName,
|
||||
mail: json.mail
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user