Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pdp2121 committed Nov 28, 2023
1 parent 87fcd8d commit cf7a40f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/containers/Amendment/Simple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface SimpleProps {
width: number
}

const DATE_OPTIONS_AMENDMEND = {
const DATE_OPTIONS_AMENDMENT = {
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
Expand Down Expand Up @@ -52,7 +52,7 @@ export const Simple = ({ data, validators, width }: SimpleProps) => {

const renderDate = (date: string | null) =>
date
? localizeDate(new Date(date), language, DATE_OPTIONS_AMENDMEND)
? localizeDate(new Date(date), language, DATE_OPTIONS_AMENDMENT)
: DEFAULT_EMPTY_VALUE

const renderRowIndex = () =>
Expand All @@ -79,7 +79,7 @@ export const Simple = ({ data, validators, width }: SimpleProps) => {
)}
{data.eta ? (
<SimpleRow label={`${t('eta')} (UTC)`} className="eta yes">
{localizeDate(new Date(data.eta), language, DATE_OPTIONS_AMENDMEND)}
{localizeDate(new Date(data.eta), language, DATE_OPTIONS_AMENDMENT)}
</SimpleRow>
) : (
<SimpleRow label={t('eta')} className="eta no">
Expand Down

0 comments on commit cf7a40f

Please sign in to comment.