Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Aug 30, 2022
1 parent c356505 commit cacb803
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/status_im/ui/screens/wallet/manage_connections/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
[status-im.utils.handlers :refer [<sub]]
[status-im.utils.utils :as utils]))

(defn get-account-selector-state
[account-tab]
(-> account-tab
(defn get-currently-selected-accounts
[selected-tab]
(-> selected-tab
second
:session
:params
Expand All @@ -32,8 +32,8 @@
app-management-sheet-view
true]]))
:component-did-update (fn [this old-argv]
(let [account-tab-changed? (not= (get-account-selector-state old-argv)
(get-account-selector-state (reagent/argv this)))]
(let [account-tab-changed? (not= (get-currently-selected-accounts old-argv)
(get-currently-selected-accounts (reagent/argv this)))]
(when account-tab-changed?
(re-frame/dispatch [:wallet-connect-legacy/save-session
{:peer-id peer-id
Expand Down

0 comments on commit cacb803

Please sign in to comment.