Skip to content

Commit

Permalink
bug/query-params-not-working
Browse files Browse the repository at this point in the history
  • Loading branch information
danielisaacgeslin committed Sep 20, 2024
1 parent 1917838 commit 7ed9cc1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions apps/connect/src/hooks/useConnectConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,19 @@ export const useConnectConfig = () => {
() => ({
...defaultConfig,
chains: networks!,
searchTx: {
...(txHash && { txHash }),
...(sourceChain && { chainName: sourceChain }),
ui: {
...(defaultConfig.ui as NonNullable<WormholeConnectConfig["ui"]>),
searchTx: {
...(txHash && { txHash }),
...(sourceChain && { chainName: sourceChain }),
},
defaultInputs: {
...(sourceChain && { fromChain: sourceChain }),
...(targetChain && { toChain: targetChain }),
...(token && { tokenKey: token }),
...(requiredNetwork && { requiredChain: requiredNetwork }),
},
},
bridgeDefaults: {
...(sourceChain && { fromChain: sourceChain }),
...(targetChain && { toChain: targetChain }),
...(token && { tokenKey: token }),
...(requiredNetwork && { requiredChain: requiredNetwork }),
},
//...(route && { routes: [route] }),
}),
[networks, txHash, sourceChain, targetChain, token, requiredNetwork]
);
Expand Down

0 comments on commit 7ed9cc1

Please sign in to comment.