aboutsummaryrefslogtreecommitdiff
path: root/src/webex/pages/popup.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-10-15 19:28:35 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-10-15 20:30:33 +0200
commit8b2f53e3ed810a0539f76feb993f0044bc8c0f38 (patch)
treef88687b498f133e8e7c0743def7ef7929f6173c6 /src/webex/pages/popup.tsx
parent353eeca339e060eb4a03e0b67343086854a5e5d7 (diff)
downloadwallet-core-8b2f53e3ed810a0539f76feb993f0044bc8c0f38.tar.xz
fix tslint warnings
Diffstat (limited to 'src/webex/pages/popup.tsx')
-rw-r--r--src/webex/pages/popup.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx
index 4e4e9687c..9c012449c 100644
--- a/src/webex/pages/popup.tsx
+++ b/src/webex/pages/popup.tsx
@@ -105,12 +105,12 @@ class Router extends React.Component<any, any> {
foundChild = child;
}
});
- const child: React.ReactChild | null = foundChild || defaultChild;
- if (!child) {
+ const c: React.ReactChild | null = foundChild || defaultChild;
+ if (!c) {
throw Error("unknown route");
}
- Router.setRoute((child as any).props.route);
- return <div>{child}</div>;
+ Router.setRoute((c as any).props.route);
+ return <div>{c}</div>;
}
}
@@ -367,7 +367,8 @@ function formatHistoryItem(historyItem: HistoryRecord) {
const link = chrome.extension.getURL("view-contract.html");
return (
<i18n.Translate wrap="p">
- Merchant <em>{abbrev(d.merchantName, 15)}</em> offered contract <a href={link}>{abbrev(d.contractTermsHash)}</a>;
+ Merchant <em>{abbrev(d.merchantName, 15)}</em> offered{" "}
+ contract <a href={link}>{abbrev(d.contractTermsHash)}</a>.
</i18n.Translate>
);
}