Skip to content

BRL currency prefix only shows 1 letter #7

@Grohden

Description

@Grohden
    const [a,b] = useState(0)

    return (
        <AmountInput
            currency='BRL'
            defaultQuantity={ a }
            onChangeQuantity={ b }
        />
    )

renders R0.00, when it should render R$0.00 (actually it should be using ',' tho)

The issue is on this line

return formatter.format(0)[0]

removing the [0] fixes for me, but I'm not sure why it has this index access

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions