Skip to content

Commit

Permalink
Added i10n fixes for header.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dorlus committed Jan 9, 2020
1 parent f61a139 commit 590a904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export interface SuccessfulRepositoryCleanup {

export interface FailedRepositoryCleanup {
cleaned: false;
error: object;
error: string;
}

export type RepositoryCleanup = FailedRepositoryCleanup | SuccessfulRepositoryCleanup;
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export const RepositoryDetails: React.FunctionComponent<Props> = ({
{cleanup ? (
<>
<EuiSpacer size="s" />
{cleanup?.cleaned ? (
{cleanup.cleaned ? (
<div>
<EuiTitle size="xs">
<h4>
Expand All @@ -363,7 +363,7 @@ export const RepositoryDetails: React.FunctionComponent<Props> = ({
<p>
<FormattedMessage
id="xpack.snapshotRestore.repositoryDetails.cleanupRepositoryErrorMessage"
defaultMessage={JSON.stringify(cleanup.error)}
defaultMessage={`${cleanup.error}`}
/>
</p>
</EuiCallOut>
Expand Down

0 comments on commit 590a904

Please sign in to comment.