Skip to content

Commit

Permalink
Kiki/fre 1321 keplr in app browser issues (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki authored Dec 19, 2024
1 parent 949544c commit bc373bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-crews-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

fix keplr in app browser issue
14 changes: 6 additions & 8 deletions packages/widget/src/hooks/useCreateCosmosWallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,13 @@ export const useCreateCosmosWallets = () => {

for (const wallet of cosmosWallets) {
const isWC = isWalletConnect(wallet);

const mobile = isMobile()
const walletInfo = getCosmosWalletInfo(wallet);
const initialChainIds = (
isWC
? walletConnectMainnetChainIdsInitialConnect
: wallet === WalletType.KEPLR
? keplrMainnetChainIdsInitialConnect
: walletMainnetChainIdsInitialConnect
).filter(
const initialChainIds = (() => {
if (isWC) return walletConnectMainnetChainIdsInitialConnect
if (wallet === WalletType.KEPLR && !mobile) return keplrMainnetChainIdsInitialConnect
return walletMainnetChainIdsInitialConnect
})().filter(
(x) =>
chains
?.filter((z) => z.chainType === ChainType.Cosmos)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const AssetAndChainSelectorModalSearchInput = ({
const StyledLeftArrowIcon = styled(LeftArrowIcon)`
width: 25px;
opacity: 0.5;
transform: rotate(180deg);
`;

const StyledSelectedAsset = styled(StyledAssetLabel)`
Expand Down

0 comments on commit bc373bd

Please sign in to comment.