Skip to content

Commit

Permalink
fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Apr 13, 2020
1 parent 5a8e8f6 commit a58f974
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ export const EMAIL_BODY = (caseUrl: string) =>
values: { caseUrl },
defaultMessage: 'Case reference: {caseUrl}',
});
export const UNKNOWN = i18n.translate('xpack.siem.case.caseView.unknown', {
defaultMessage: 'Unknown',
});
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const UserActionTree = React.memo(
markdown={MarkdownDescription}
onEdit={handleManageMarkdownEditId.bind(null, DESCRIPTION_ID)}
onQuote={handleManageQuote.bind(null, caseData.description)}
username={caseData.createdBy.username ?? 'Unknown'}
username={caseData.createdBy.username ?? i18n.UNKNOWN}
/>

{caseUserActions.map((action, index) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface UserActionTitleProps {
linkId?: string | null;
fullName?: string | null;
updatedAt?: string | null;
username: string;
username?: string | null;
onEdit?: (id: string) => void;
onQuote?: (id: string) => void;
outlineComment?: (id: string) => void;
Expand All @@ -63,7 +63,7 @@ export const UserActionTitle = ({
onQuote,
outlineComment,
updatedAt,
username,
username = i18n.UNKNOWN,
}: UserActionTitleProps) => {
const { detailName: caseId } = useParams();
const urlSearch = useGetUrlSearch(navTabs.case);
Expand Down

0 comments on commit a58f974

Please sign in to comment.