diff --git a/scm-ui/public/locales/en/commons.json b/scm-ui/public/locales/en/commons.json index 05e9f79d16..9471c994c1 100644 --- a/scm-ui/public/locales/en/commons.json +++ b/scm-ui/public/locales/en/commons.json @@ -46,6 +46,8 @@ "mail": "E-Mail", "change-password": "Change password", "error-title": "Error", - "error-subtitle": "Cannot display profile" + "error-subtitle": "Cannot display profile", + "error": "Error", + "error-message": "'me' is undefined" } } diff --git a/scm-ui/src/containers/Profile.js b/scm-ui/src/containers/Profile.js index 3a85afaeb4..6117712ebc 100644 --- a/scm-ui/src/containers/Profile.js +++ b/scm-ui/src/containers/Profile.js @@ -2,18 +2,18 @@ import React from "react"; -import { - Page, - Navigation, - Section -} from "../../../scm-ui-components/packages/ui-components/src/index"; import { NavLink, Route, withRouter } from "react-router-dom"; import { getMe } from "../modules/auth"; import { compose } from "redux"; import { connect } from "react-redux"; import { translate } from "react-i18next"; -import type { Me } from "../../../scm-ui-components/packages/ui-types/src/index"; -import { ErrorPage } from "@scm-manager/ui-components"; +import type { Me } from "@scm-manager/ui-types"; +import { + ErrorPage, + Page, + Navigation, + Section +} from "@scm-manager/ui-components"; import ChangeUserPassword from "./ChangeUserPassword"; import ProfileInfo from "./ProfileInfo"; @@ -48,7 +48,10 @@ class Profile extends React.Component { ); }