Skip to content

BUG-1010518: Currency codes not displaying for Decimal and currency fields in details#506

Open
samhere06 wants to merge 2 commits into
release/25.1from
mod/decouplers/BUG-1010518
Open

BUG-1010518: Currency codes not displaying for Decimal and currency fields in details#506
samhere06 wants to merge 2 commits into
release/25.1from
mod/decouplers/BUG-1010518

Conversation

@samhere06

Copy link
Copy Markdown
Contributor

BUG-1010518: Currency codes not displaying for Decimal and currency fields in details


_formatCurrency(field: any): string {
const { currencyISOCode = 'USD', formatter } = field.config;
let formattedValue = '';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't formattedValue be a const similar to the _formatDecimal method? format method should be able to return a fallback value, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants