Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Nov 19, 2024
1 parent 95e58ce commit 42e182d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/demo-react/providers/sdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const LidoSDKProvider: React.FC<PropsWithChildren> = ({ children }) => {
}
};
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isConnected]);

const contextValue = useMemo(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/connectors/ledger-connector/src/hid/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ export function ledgerHIDConnector({
const id = chainId.toString(16);

emitter.emit('change', { chainId: Number(chainId) });
return (
return Promise.resolve(

Check warning on line 95 in packages/connectors/ledger-connector/src/hid/connector.ts

View workflow job for this annotation

GitHub Actions / check-all

Prefer `return value` over `return Promise.resolve(value)`
chains.find((x) => x.id === chainId) ?? {
id: chainId,
name: `Chain ${id}`,
network: `${id}`,
nativeCurrency: { decimals: 18, name: 'Ether', symbol: 'ETH' },
rpcUrls: { default: { http: [''] }, public: { http: [''] } },
}
},
);
},

Expand Down

0 comments on commit 42e182d

Please sign in to comment.