Remove double-format for duration value. (#30664)

This commit is contained in:
Justin Kambic 2019-02-11 18:25:33 -05:00 committed by GitHub
parent e60d6d119d
commit 139b0d512d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,8 +58,7 @@ export const MonitorStatusBar = ({ timestamp, url, duration, status }: Props) =>
>
<FormattedMessage
id="xpack.uptime.monitorStatusBar.healthStatus.durationInMillisecondsMessage"
// TODO: this should not be computed inline
values={{ duration: duration ? duration / 1000 : 0 }}
values={{ duration: duration ? duration : 0 }}
defaultMessage="{duration}ms"
description="The 'ms' is an abbreviation for 'milliseconds'."
/>