Skip to content

Commit

Permalink
Fix: remove translation on block labels in healthchecks widget (#2440)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawtonmanning authored Dec 7, 2023
1 parent 5e01eb4 commit 914cd71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/widgets/healthchecks/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ export default function Component({ service }) {
if (!data) {
return (
<Container service={service}>
<Block label={t("healthchecks.status")} />
<Block label={t("healthchecks.last_ping")} />
<Block label="healthchecks.status" />
<Block label="healthchecks.last_ping" />
</Container>
);
}

return (
<Container service={service}>
<Block label={t("healthchecks.status")} value={t(`healthchecks.${data.status}`)} />
<Block label="healthchecks.status" value={t(`healthchecks.${data.status}`)} />
<Block
label={t("healthchecks.last_ping")}
label="healthchecks.last_ping"
value={data.last_ping ? formatDate(data.last_ping) : t("healthchecks.never")}
/>
</Container>
Expand Down

0 comments on commit 914cd71

Please sign in to comment.