Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed May 15, 2024
1 parent a6e24c8 commit a89edd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/error-page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Text } from "@chakra-ui/react";
import React from "react";
import { isRouteErrorResponse, useRouteError } from "react-router-dom";
import Layout from "./components/Layout/Layout";
Expand All @@ -15,7 +14,7 @@ export default function ErrorPage(): React.ReactNode {
<p>
<strong>{isRouteErrorResponse(error) && <>Error {error.status} </>}</strong>
<i>{error.statusText || error.message}</i>
<Text>{error.error?.message}</Text>
{error.error?.message}
</p>
</div>
</Layout>
Expand Down
4 changes: 2 additions & 2 deletions src/bots/importer.bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ export class ImporterBot extends ITradingBot {
}
*/
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
protected async processSecurityInfoUnderlying(element: any): Promise<Contract> | Promise<undefined> {
protected async processSecurityInfoUnderlying(element: any): Promise<Contract | undefined> {
if (element.underlyingConid) {
return this.findOrCreateContract(ibUnderlyingContractFromElement(element));
} else return Promise.resolve(undefined);
} else return Promise.resolve(undefined as undefined);
}

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

0 comments on commit a89edd8

Please sign in to comment.