From cd0b07b3adb36fb5ec098f9e511ab45d774fee7b Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 30 Jan 2018 12:41:01 -0500 Subject: Move to Prisma Backend --- frontend/lib/formatMoney.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 frontend/lib/formatMoney.js (limited to 'frontend/lib/formatMoney.js') 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(); +} -- cgit v1.3