cosmology-tech / cosmos-kit

Universal wallet connector for the Cosmos ⚛️
https://cosmology.zone/products/cosmos-kit
BSD 3-Clause Clear License
183 stars 129 forks source link

First modal view sometimes auto connecting to the second wallet in the list, openView giving cosmostationExtension as by default, #400

Closed blackpanther1881 closed 7 months ago

blackpanther1881 commented 7 months ago

same issue but marked it as resolved here https://github.com/cosmology-tech/cosmos-kit/issues/380#issuecomment-1917430162

my package version

    "@cosmos-kit/core": "^2.7.12",
    "@cosmos-kit/cosmos-extension-metamask": "^0.3.2",
    "@cosmos-kit/cosmostation": "^2.5.2",
    "@cosmos-kit/cosmostation-extension": "^2.7.8",
    "@cosmos-kit/exodus": "^2.4.12",
    "@cosmos-kit/frontier": "^2.4.13",
    "@cosmos-kit/keplr": "2.6.8",
    "@cosmos-kit/leap": "^2.5.2",
    "@cosmos-kit/ledger": "^2.5.12",
    "@cosmos-kit/okxwallet": "^2.3.13",
    "@cosmos-kit/react": "^2.10.8",
    "@cosmos-kit/xdefi": "^2.4.14",
    "@persistenceone/persistence-ui-components": "^0.0.1",
    "chain-registry": "^1.26.0",
liujun93 commented 7 months ago

It's may because you connected cosmostation once recently. check cosmos-kit@2:core//current-wallet in your browser localstorage please.

You can clean localstorage to avoid auto-connection. or set the session duration with a lower number.