aboutsummaryrefslogtreecommitdiff
path: root/src/webex/renderHtml.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-29 15:18:48 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-29 15:18:48 +0200
commitd0e0c6baf274aab378233a7ae0d67307c03b3a7c (patch)
treeceec84efb0d396f32a16c96be1c3cf95dcd3725a /src/webex/renderHtml.tsx
parent2e9ecf952d4028a2d55cd7be5d4afb689bac88b8 (diff)
downloadwallet-core-d0e0c6baf274aab378233a7ae0d67307c03b3a7c.tar.xz
fix linter errors
Diffstat (limited to 'src/webex/renderHtml.tsx')
-rw-r--r--src/webex/renderHtml.tsx10
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>