diff options
Diffstat (limited to 'src/renderHtml.tsx')
-rw-r--r-- | src/renderHtml.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderHtml.tsx b/src/renderHtml.tsx index 940d5c425..fe6646196 100644 --- a/src/renderHtml.tsx +++ b/src/renderHtml.tsx @@ -21,10 +21,10 @@ */ -import {AmountJson, Contract} from "./types"; +import {AmountJson, Contract, Amounts} from "./types"; export function prettyAmount(amount: AmountJson) { - let v = amount.value + amount.fraction / 1e6; + let v = amount.value + amount.fraction / Amounts.fractionalBase; return `${v.toFixed(2)} ${amount.currency}`; } |