Skip to content

Commit a89edd8

Browse files
committed
lint fix
1 parent a6e24c8 commit a89edd8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/app/error-page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Text } from "@chakra-ui/react";
21
import React from "react";
32
import { isRouteErrorResponse, useRouteError } from "react-router-dom";
43
import Layout from "./components/Layout/Layout";
@@ -15,7 +14,7 @@ export default function ErrorPage(): React.ReactNode {
1514
<p>
1615
<strong>{isRouteErrorResponse(error) && <>Error {error.status} </>}</strong>
1716
<i>{error.statusText || error.message}</i>
18-
<Text>{error.error?.message}</Text>
17+
{error.error?.message}
1918
</p>
2019
</div>
2120
</Layout>

src/bots/importer.bot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ export class ImporterBot extends ITradingBot {
170170
}
171171
*/
172172
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
173-
protected async processSecurityInfoUnderlying(element: any): Promise<Contract> | Promise<undefined> {
173+
protected async processSecurityInfoUnderlying(element: any): Promise<Contract | undefined> {
174174
if (element.underlyingConid) {
175175
return this.findOrCreateContract(ibUnderlyingContractFromElement(element));
176-
} else return Promise.resolve(undefined);
176+
} else return Promise.resolve(undefined as undefined);
177177
}
178178

179179
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types

0 commit comments

Comments
 (0)