Merge pull request #637 from dod-ccpo/clin-nan-fix

Fix NaN appearing in CLIN fields
This commit is contained in:
leigh-mil
2019-02-13 13:23:57 -05:00
committed by GitHub

View File

@@ -5,6 +5,10 @@ export const formatDollars = (value, cents = true) => {
currency: 'USD',
})
} else if (typeof value === 'string') {
if (value === '') {
return value
}
return parseFloat(value).toLocaleString('us-US', {
style: 'currency',
currency: 'USD',