diff options
Diffstat (limited to 'src/webex/pages')
-rw-r--r-- | src/webex/pages/benchmark.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/popup.tsx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/webex/pages/benchmark.tsx b/src/webex/pages/benchmark.tsx index 1efe7898d..bf4c4b04d 100644 --- a/src/webex/pages/benchmark.tsx +++ b/src/webex/pages/benchmark.tsx @@ -77,7 +77,7 @@ class BenchmarkRunner extends React.Component<any, BenchmarkRunnerState> { async run() { this.setState({ result: undefined, running: true }); - let result = await wxApi.benchmarkCrypto(this.state.repetitions); + const result = await wxApi.benchmarkCrypto(this.state.repetitions); this.setState({ result, running: false }); } 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], |