Skip to content

Commit

Permalink
Fixed eslint + format
Browse files Browse the repository at this point in the history
  • Loading branch information
msenechal committed Jan 16, 2024
1 parent 06a8ebd commit 5227dfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Header({ themeMode, toggleTheme }: { themeMode: string;
>
<Typography variant='h6' component='a' href='#app-bar-with-responsive-menu' sx={{}}>
<img
src={themeMode === 'dark' ? Neo4jLogoBW : Neo4jLogoColor }
src={themeMode === 'dark' ? Neo4jLogoBW : Neo4jLogoColor}
style={{ height: '32px', minHeight: '32px', minWidth: '32px' }}
alt='Neo4j Logo'
/>
Expand Down
3 changes: 2 additions & 1 deletion src/utils/Driver.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import neo4j, { Driver } from 'neo4j-driver';

let driver: Driver;
Expand All @@ -19,7 +20,7 @@ export async function setDriver(connectionURI, username, password) {

export async function disconnect() {
try {
driver.close();
await driver.close();
return true;
} catch (err) {
console.error(`Disconnection error\n${err}\nCause: ${err.cause}`);
Expand Down

0 comments on commit 5227dfb

Please sign in to comment.