Skip to content

Commit

Permalink
Dynamic chain Header and minor revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanNero committed Nov 29, 2023
1 parent a1846f4 commit ae49431
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,9 @@ export const Header = () => {
console.log("chainKey:", chainKey);
console.log("chainValue:", chainValue);
console.log("key:", chainKey);

const modifiedChainValue = {
...chainValue,
testnet: false, // Replace with the correct value
};
console.log("modifedsifje chain value:", modifiedChainValue);
//console.log("chains:", chains[chainKey]);

// setSelectedNetwork(chainValue.name);
// This doesn't work directly, but somehow works when passed through a function?
//scaffoldConfig.targetNetwork = chains[chainKey as keyof typeof chains];
changeTargetNetwork(chains[chainKey as keyof typeof chains]);
console.log(`Switching chain to ${chainValue.name}...`);
Expand Down

0 comments on commit ae49431

Please sign in to comment.