Skip to content

Commit

Permalink
feat: re-enable dapps interactions with keycard
Browse files Browse the repository at this point in the history
  • Loading branch information
clauxx committed Jan 6, 2025
1 parent 378fd5a commit d5b3e24
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
(:require [clojure.string :as string]
[re-frame.core :as rf]
[react-native.wallet-connect :as wallet-connect]
[status-im.contexts.wallet.data-store :as wallet-data-store]
[status-im.contexts.wallet.wallet-connect.utils.data-store :as
data-store]
[status-im.contexts.wallet.wallet-connect.utils.networks :as networks]
Expand Down Expand Up @@ -31,15 +30,8 @@
expired? (-> parsed-uri
:expiryTimestamp
uri/timestamp-expired?)
version-supported? (uri/version-supported? version)
keycard? (wallet-data-store/selected-keypair-keycard? db)]
version-supported? (uri/version-supported? version)]
(cond

keycard?
{:fx [[:dispatch
[:keycard/feature-unavailable-show
{:feature-name :wallet.scan-dapp-connection}]]]}

(or (not valid-wc-uri?)
(not version-supported?)
(= network-status :offline)
Expand Down

0 comments on commit d5b3e24

Please sign in to comment.