diff --git a/.changeset/selfish-crews-look.md b/.changeset/selfish-crews-look.md new file mode 100644 index 000000000..fe20cceac --- /dev/null +++ b/.changeset/selfish-crews-look.md @@ -0,0 +1,5 @@ +--- +'@skip-go/widget': patch +--- + +fix keplr in app browser issue diff --git a/packages/widget/src/hooks/useCreateCosmosWallets.tsx b/packages/widget/src/hooks/useCreateCosmosWallets.tsx index 1775feeb7..c8c873df8 100644 --- a/packages/widget/src/hooks/useCreateCosmosWallets.tsx +++ b/packages/widget/src/hooks/useCreateCosmosWallets.tsx @@ -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) diff --git a/packages/widget/src/modals/AssetAndChainSelectorModal/AssetAndChainSelectorModalSearchInput.tsx b/packages/widget/src/modals/AssetAndChainSelectorModal/AssetAndChainSelectorModalSearchInput.tsx index 7993c70f4..73178f14e 100644 --- a/packages/widget/src/modals/AssetAndChainSelectorModal/AssetAndChainSelectorModalSearchInput.tsx +++ b/packages/widget/src/modals/AssetAndChainSelectorModal/AssetAndChainSelectorModalSearchInput.tsx @@ -93,6 +93,7 @@ export const AssetAndChainSelectorModalSearchInput = ({ const StyledLeftArrowIcon = styled(LeftArrowIcon)` width: 25px; opacity: 0.5; + transform: rotate(180deg); `; const StyledSelectedAsset = styled(StyledAssetLabel)`