aboutsummaryrefslogtreecommitdiff
path: root/src/webex/pages/popup.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-06 21:15:41 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-06 21:15:41 +0530
commitf36bb7a04eabe0330cb166bf9ce5021c92f38dc8 (patch)
tree9a242a06bd5353c8b167600c31776c9f16d9d21c /src/webex/pages/popup.tsx
parent07f25566ca51b7faf6462a57d15f4ebbfc733ab0 (diff)
downloadwallet-core-f36bb7a04eabe0330cb166bf9ce5021c92f38dc8.tar.xz
linter
Diffstat (limited to 'src/webex/pages/popup.tsx')
-rw-r--r--src/webex/pages/popup.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx
index f4a2bf568..6cd7242ff 100644
--- a/src/webex/pages/popup.tsx
+++ b/src/webex/pages/popup.tsx
@@ -427,8 +427,8 @@ function amountDiff(
total: string | Amounts.AmountJson,
partial: string | Amounts.AmountJson,
): Amounts.AmountJson | string {
- let a = typeof total === "string" ? Amounts.parse(total) : total;
- let b = typeof partial === "string" ? Amounts.parse(partial) : partial;
+ const a = typeof total === "string" ? Amounts.parse(total) : total;
+ const b = typeof partial === "string" ? Amounts.parse(partial) : partial;
if (a && b) {
return Amounts.sub(a, b).amount;
} else {
@@ -437,7 +437,7 @@ function amountDiff(
}
function parseSummary(summary: string) {
- let parsed = summary.split(/: (.+)/);
+ const parsed = summary.split(/: (.+)/);
return {
merchant: parsed[0],
item: parsed[1],