diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index d175f6b..7c13a7b 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -18,12 +18,10 @@ interface IAppComponentProps extends RouteComponentProps { export function AppComponent(props: IAppComponentProps) { const { loggedIn } = props; - const { location } = props.history; return loggedIn ? ( , , - , , ) : ( @@ -37,7 +35,7 @@ export function AppComponent(props: IAppComponentProps) { } function mapStateToProps(state: IAppState) { - return { loggedIn: !(state.auth.jwt === null) }; + return { loggedIn: state.auth.jwt !== null }; } export const App = withRouter(connect(mapStateToProps)(AppComponent)); diff --git a/writer.code-workspace b/writer.code-workspace index 837b34c..74f1565 100644 --- a/writer.code-workspace +++ b/writer.code-workspace @@ -11,6 +11,7 @@ "typescriptHero.imports.stringQuoteStyle": "\"", "files.exclude": { "**/node_modules": true - } + }, + "typescript.tsdk": "writer/node_modules/typescript/lib" } } \ No newline at end of file