Skip to content

Commit

Permalink
fix URL to docs in error and adjust test case (#3734)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrensj authored Mar 21, 2024
1 parent 55acebe commit 21bb959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/errors/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test('WagmiProviderNotFoundError', () => {
expect(new WagmiProviderNotFoundError()).toMatchInlineSnapshot(`
[WagmiProviderNotFoundError: \`useConfig\` must be used within \`WagmiProvider\`.
Docs: https://wagmi.sh/reacthttps://wagmi.sh/react/api/WagmiProvider.html
Docs: https://wagmi.sh/react/api/WagmiProvider.html
Version: wagmi@x.y.z]
`)
})
2 changes: 1 addition & 1 deletion packages/react/src/errors/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class WagmiProviderNotFoundError extends BaseError {
override name = 'WagmiProviderNotFoundError'
constructor() {
super('`useConfig` must be used within `WagmiProvider`.', {
docsPath: 'https://wagmi.sh/react/api/WagmiProvider',
docsPath: '/api/WagmiProvider',
})
}
}

0 comments on commit 21bb959

Please sign in to comment.