diff --git a/components/estimates.vue b/components/estimates.vue index f5f0eec..4a9091d 100644 --- a/components/estimates.vue +++ b/components/estimates.vue @@ -50,10 +50,11 @@ ${{(estimate.price / 100).toLocaleString()}} -
+

{{l.title}}

- + +
@@ -67,6 +68,7 @@ ${{(estimate.price / 100).toLocaleString()}} diff --git a/helpers.js b/helpers.js index 1ef7836..7d65107 100644 --- a/helpers.js +++ b/helpers.js @@ -34,3 +34,8 @@ export function stripPerc(e) { return num } +// Print number of cents as a nice string of dollars +export function format(num) { + return (num/100).toLocaleString(2) +} +