Skip to content

Commit

Permalink
Removed i18n string from JSON.stringify call since it's already a str…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
John Dorlus committed Jan 11, 2020
1 parent da765a0 commit 558ff5e
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,11 @@ export const RepositoryDetails: React.FunctionComponent<Props> = ({
})}
>
<p>
{JSON.stringify(
cleanup.error
? cleanup.error
: i18n.translate(
'xpack.snapshotRestore.repositoryDetails.cleanupUnknownError',
{ defaultMessage: '503: Unknown error' }
)
)}
{cleanup.error
? JSON.stringify(cleanup.error)
: i18n.translate('xpack.snapshotRestore.repositoryDetails.cleanupUnknownError', {
defaultMessage: '503: Unknown error',
})}
</p>
</EuiCallOut>
)}
Expand Down

0 comments on commit 558ff5e

Please sign in to comment.