diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-01-30 12:41:01 -0500 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-01-30 12:41:01 -0500 |
| commit | cd0b07b3adb36fb5ec098f9e511ab45d774fee7b (patch) | |
| tree | a203e5010219ccea1acc6bbd2c0a4bcfa0a78615 /frontend/lib/formatMoney.js | |
| parent | 0a1648bf47490b312169c531aeb51ef4725e8d2e (diff) | |
Move to Prisma Backend
Diffstat (limited to 'frontend/lib/formatMoney.js')
| -rw-r--r-- | frontend/lib/formatMoney.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/lib/formatMoney.js b/frontend/lib/formatMoney.js new file mode 100644 index 0000000..edddf48 --- /dev/null +++ b/frontend/lib/formatMoney.js @@ -0,0 +1,3 @@ +export default function(amount) { + return '$' + (amount / 100).toLocaleString(); +} |
