chore: fix the double translation of 'For'

fixes https://github.com/Uniswap/uniswap-interface/issues/1800
This commit is contained in:
Moody Salem 2021-06-02 17:51:54 -05:00
parent 2326dfa108
commit b4c59cfc6e
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -278,15 +278,12 @@ export default function VotePage({
<CardSection>
<AutoColumn gap="md">
<WrapSmall>
<Trans>
<TYPE.black fontWeight={600}>
<Trans>For</Trans>
</TYPE.black>
<TYPE.black fontWeight={600}>
{' '}
{proposalData?.forCount.toLocaleString(undefined, { maximumFractionDigits: 0 })}
</TYPE.black>
</Trans>
<TYPE.black fontWeight={600}>
<Trans>For</Trans>
</TYPE.black>
<TYPE.black fontWeight={600}>
{proposalData?.forCount?.toLocaleString(undefined, { maximumFractionDigits: 0 })}
</TYPE.black>
</WrapSmall>
</AutoColumn>
<ProgressWrapper>
@ -302,7 +299,7 @@ export default function VotePage({
<Trans>Against</Trans>
</TYPE.black>
<TYPE.black fontWeight={600}>
{proposalData?.againstCount.toLocaleString(undefined, { maximumFractionDigits: 0 })}
{proposalData?.againstCount?.toLocaleString(undefined, { maximumFractionDigits: 0 })}
</TYPE.black>
</WrapSmall>
</AutoColumn>