summaryrefslogtreecommitdiff
path: root/src/webex/pages/popup.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/webex/pages/popup.tsx')
-rw-r--r--src/webex/pages/popup.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx
index cdb09d444..0fd2477f6 100644
--- a/src/webex/pages/popup.tsx
+++ b/src/webex/pages/popup.tsx
@@ -40,6 +40,9 @@ import { HistoryEvent } from "../../types/history";
import moment from "moment";
import { Timestamp } from "../../util/time";
+// FIXME: move to newer react functions
+/* eslint-disable react/no-deprecated */
+
function onUpdateNotification(f: () => void): () => void {
const port = chrome.runtime.connect({ name: "notifications" });
const listener = (): void => {
@@ -290,7 +293,7 @@ class WalletBalanceView extends React.Component<any, any> {
const listing = Object.keys(wallet.byCurrency).map((key) => {
const entry: WalletBalanceEntry = wallet.byCurrency[key];
return (
- <p>
+ <p key={key}>
{bigAmount(entry.available)} {this.formatPending(entry)}
</p>
);
@@ -414,7 +417,7 @@ function amountDiff(
}
}
-function parseSummary(summary: string) {
+function parseSummary(summary: string): { item: string; merchant: string } {
const parsed = summary.split(/: (.+)/);
return {
merchant: parsed[0],