Skip to content

Commit

Permalink
chore: remove Substrate anchor and fix UI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham committed Oct 5, 2023
1 parent e72ed39 commit 19de22d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/bridge-dapp/src/hooks/useConnectButtonProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function useConnectButtonProps(typedChainId?: number | null) {
}

if (activeWallet && nextChain.wallets.includes(activeWallet.id)) {
await switchChain(nextChain, activeWallet);
return true;
const newApi = await switchChain(nextChain, activeWallet);
return Boolean(newApi);
} else {
toggleModal(true, nextChain);
return false;
Expand Down
5 changes: 0 additions & 5 deletions libs/dapp-config/src/anchors/anchor-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ export const anchorDeploymentBlock: Record<number, Record<string, number>> = {
},

...localAnchorRecord,

// Substrate
[PresetTypedChainId.LocalTangleStandalone]: {
'1': NaN,
},
};

export const parsedAnchorConfig = Object.keys(anchorDeploymentBlock).reduce(
Expand Down

0 comments on commit 19de22d

Please sign in to comment.