Merge pull request #637 from dod-ccpo/clin-nan-fix
Fix NaN appearing in CLIN fields
This commit is contained in:
commit
e5422b2486
@ -5,6 +5,10 @@ export const formatDollars = (value, cents = true) => {
|
|||||||
currency: 'USD',
|
currency: 'USD',
|
||||||
})
|
})
|
||||||
} else if (typeof value === 'string') {
|
} else if (typeof value === 'string') {
|
||||||
|
if (value === '') {
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
|
||||||
return parseFloat(value).toLocaleString('us-US', {
|
return parseFloat(value).toLocaleString('us-US', {
|
||||||
style: 'currency',
|
style: 'currency',
|
||||||
currency: 'USD',
|
currency: 'USD',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user