Skip to content

Commit

Permalink
fix type issues in example-app
Browse files Browse the repository at this point in the history
  • Loading branch information
frontendphil committed Dec 11, 2024
1 parent e275cec commit d3c8dc0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example-app/app/Connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export const Connect = () => {
<Input
disabled
label="Wallet"
defaultValue={account.connector.name}
defaultValue={account.connector?.name}
/>

<Input disabled label="Chain" defaultValue={account.chain.name} />
<Input disabled label="Chain" defaultValue={account.chain?.name} />

<Input disabled defaultValue={account.address} label="Account" />

Expand Down
1 change: 1 addition & 0 deletions example-app/app/config/ConfigProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const useWagmiConfig = (): [config: Config, scopeKey: string] => {
return [
{
...config,
// @ts-expect-error Something around chain that hopefully isn't important
getClient: (options) => {
const chain = getChain(config.chains, options)

Expand Down
5 changes: 4 additions & 1 deletion example-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
"strict": true,
"module": "ES2022",
"moduleResolution": "Bundler",
"skipLibCheck": true,
"jsx": "react-jsx",
"paths": {
"@/transfer": ["./app/transfer"],
"@/components": ["./app/components"],
"@/clients": ["./app/clients"],
"@/config": ["./app/config"]
}
}
},
"include": ["./app/**/*"],
"exclude": ["node_modules"]
}

0 comments on commit d3c8dc0

Please sign in to comment.