Skip to content

Commit

Permalink
Merge branch 'v2/dev' into pavania1/v2-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
charymalloju authored Sep 12, 2024
2 parents e360452 + 37f5baa commit 2f20192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/main-layout/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useAppDispatch, useAppSelector } from '@/custom-hooks/StateHooks';
import {
establishWalletConnection,
setConnectWalletOpen,
setIsLoading,
} from '@/store/features/wallet/walletSlice';
import { networks } from '@/utils/chainsInfo';
import { SUPPORTED_WALLETS } from '@/utils/constants';
Expand Down Expand Up @@ -37,7 +38,7 @@ const ConnectWallet = () => {

const tryConnectWallet = async (walletName: string) => {
if (walletName === 'metamask') {
// dispatch(setIsLoading());
dispatch(setIsLoading());
try {
for (let i = 0; i < networks.length; i++) {
const chainId: string = networks[i].config.chainId;
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/main-layout/FixedLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from '@leapwallet/cosmos-snap-provider';
import {
establishWalletConnection,
setIsLoading,
unsetIsLoading,
} from '@/store/features/wallet/walletSlice';
import {
Expand Down Expand Up @@ -42,7 +43,7 @@ const FixedLayout = ({ children }: { children: React.ReactNode }) => {

const tryConnectWallet = async (walletName: string) => {
if (walletName === 'metamask') {
// dispatch(setIsLoading());
dispatch(setIsLoading());
try {
for (let i = 0; i < networks.length; i++) {
const chainId: string = networks[i].config.chainId;
Expand Down

0 comments on commit 2f20192

Please sign in to comment.