Skip to content

Commit

Permalink
fix language code format mismatch (#8889)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-decker authored Jul 2, 2020
1 parent 259d198 commit 68bcf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/hooks/useTransactionTimeRemaining.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function useTransactionTimeRemaining (
const featureFlags = useSelector(getFeatureFlags)
const transactionTimeFeatureActive = featureFlags?.transactionTime

const rtf = new Intl.RelativeTimeFormat(locale, { numeric: 'auto', style: 'narrow' })
const rtf = new Intl.RelativeTimeFormat(locale.replace('_', '-'), { numeric: 'auto', style: 'narrow' })

// Memoize this value so it can be used as a dependency in the effect below
const initialTimeEstimate = useMemo(() => {
Expand Down

0 comments on commit 68bcf38

Please sign in to comment.