Merge branch 'master' into title-error-message

This commit is contained in:
rachel-dtr
2019-02-14 10:53:47 -05:00
committed by GitHub
108 changed files with 4803 additions and 2121 deletions

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',