File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- import { Text } from "@chakra-ui/react" ;
2
1
import React from "react" ;
3
2
import { isRouteErrorResponse , useRouteError } from "react-router-dom" ;
4
3
import Layout from "./components/Layout/Layout" ;
@@ -15,7 +14,7 @@ export default function ErrorPage(): React.ReactNode {
15
14
< p >
16
15
< strong > { isRouteErrorResponse ( error ) && < > Error { error . status } </ > } </ strong >
17
16
< i > { error . statusText || error . message } </ i >
18
- < Text > { error . error ?. message } </ Text >
17
+ { error . error ?. message }
19
18
</ p >
20
19
</ div >
21
20
</ Layout >
Original file line number Diff line number Diff line change @@ -170,10 +170,10 @@ export class ImporterBot extends ITradingBot {
170
170
}
171
171
*/
172
172
// 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 > {
174
174
if ( element . underlyingConid ) {
175
175
return this . findOrCreateContract ( ibUnderlyingContractFromElement ( element ) ) ;
176
- } else return Promise . resolve ( undefined ) ;
176
+ } else return Promise . resolve ( undefined as undefined ) ;
177
177
}
178
178
179
179
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
You can’t perform that action at this time.
0 commit comments