Skip to content

Commit

Permalink
dont show "Last updated Invalid Date" when loading (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
foodelevator authored Nov 27, 2024
1 parent 80377e4 commit d20a01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Default/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const taitanRenderer = (location, lang) =>
<div className="row">
<div className="col-md-9">
<div dangerouslySetInnerHTML={{ __html: body }} />
<Translate>
{updated_at ? <Translate>
<Swedish>
<div className="align-right">
Senast uppdaterad {new Date(updated_at).toLocaleString("sv-SE", { year: "numeric", month: "long", day: "numeric" })}
Expand All @@ -179,7 +179,7 @@ const taitanRenderer = (location, lang) =>
Last updated {new Date(updated_at).toLocaleString("en-GB", { year: "numeric", month: "long", day: "numeric" })}
</div>
</English>
</Translate>
</Translate> : null}
</div>
<RightSidebar sidebar={sidebar} anchors={anchors} />
</div>
Expand Down

0 comments on commit d20a01a

Please sign in to comment.