diff options
Diffstat (limited to 'src/webex/renderHtml.tsx')
-rw-r--r-- | src/webex/renderHtml.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/webex/renderHtml.tsx b/src/webex/renderHtml.tsx index 440cd5789..d6f923aa1 100644 --- a/src/webex/renderHtml.tsx +++ b/src/webex/renderHtml.tsx @@ -24,17 +24,19 @@ /** * Imports. */ +import { amountToPretty } from "../helpers"; +import * as i18n from "../i18n"; import { AmountJson, Amounts, Contract, } from "../types"; -import * as i18n from "../i18n"; -import { amountToPretty } from "../helpers"; import * as React from "react"; - +/** + * Render contract terms for the end user to view. + */ export function renderContract(contract: Contract): JSX.Element { let merchantName; if (contract.merchant && contract.merchant.name) { @@ -42,7 +44,7 @@ export function renderContract(contract: Contract): JSX.Element { } else { merchantName = <strong>(pub: {contract.merchant_pub})</strong>; } - let amount = <strong>{amountToPretty(contract.amount)}</strong>; + const amount = <strong>{amountToPretty(contract.amount)}</strong>; return ( <div> |