Skip to content

Commit

Permalink
Fixed Bug 53524 - VersionHistory: User's display name with diacritics…
Browse files Browse the repository at this point in the history
… invalid
  • Loading branch information
gopienkonikita committed Jan 20, 2022
1 parent 3dcc4c0 commit d4b28b7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import ExternalLinkIcon from "../../../../../public/images/external.link.react.s
import commonIconsStyles from "@appserver/components/utils/common-icons-style";
import { inject, observer } from "mobx-react";
import toastr from "studio/toastr";
import { Encoder } from "@appserver/common/utils/encoder";

const StyledExternalLinkIcon = styled(ExternalLinkIcon)`
${commonIconsStyles}
Expand Down Expand Up @@ -42,9 +43,9 @@ const VersionRow = (props) => {

const canEdit = info.access === 1 || info.access === 0;

const title = `${new Date(info.updated).toLocaleString(culture)} ${
info.updatedBy.displayName
}`;
const title = `${new Date(info.updated).toLocaleString(
culture
)} ${Encoder.htmlDecode(info.updatedBy.displayName)}`;

const linkStyles = { isHovered: true, type: "action" };

Expand Down

0 comments on commit d4b28b7

Please sign in to comment.