Skip to content

Commit

Permalink
Merge branch 'main' into chore/bump-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Oct 9, 2024
2 parents 5726105 + ea42739 commit e6d31a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions wallets/rn_cli_wallet/src/modals/SessionProposalModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {Chains} from '@/components/Modal/Chains';
import {EIP155_CHAINS, EIP155_SIGNING_METHODS} from '@/utils/PresetsUtil';
import {RequestModal} from './RequestModal';
import {getSupportedChains} from '@/utils/HelperUtil';
import Toast from 'react-native-toast-message';

export default function SessionProposalModal() {
const Theme = useTheme();
Expand Down Expand Up @@ -78,17 +79,18 @@ export default function SessionProposalModal() {
id: proposal.id,
namespaces,
});
SettingsStore.setSessions(
Object.values(walletKit.getActiveSessions()),
);
SettingsStore.setSessions(Object.values(walletKit.getActiveSessions()));

handleRedirect({
peerRedirect: session.peer.metadata.redirect,
isLinkMode: session?.transportType === 'link_mode',
});
} catch (e) {
console.log((e as Error).message, 'error');
return;
Toast.show({
type: 'error',
text1: (e as Error).message,
});
}
}
setIsLoadingApprove(false);
Expand Down

0 comments on commit e6d31a6

Please sign in to comment.