Skip to content

Commit

Permalink
Move fn to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahem authored and ibrahem committed Sep 12, 2022
1 parent 1633da5 commit 8b5b494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status_im/ethereum/subscriptions.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"accounts" accounts)
(let [event (get db :wallet/on-recent-history-fetching)]
(fx/merge cofx
(wallet-connect-legacy/get-connector-session-from-db) ;; This is to refresh wallet connect session on each wallet refresh.
(cond-> {:db (-> db
(transactions/update-fetching-status accounts :recent? true)
(assoc :wallet/recent-history-fetching-started? true)
(dissoc :wallet/on-recent-history-fetching))}
event
(assoc :dispatch event))
(wallet-connect-legacy/get-connector-session-from-db))))
(assoc :dispatch event)))))

(fx/defn recent-history-fetching-ended
[{:keys [db]} {:keys [accounts blockNumber]}]
Expand Down

0 comments on commit 8b5b494

Please sign in to comment.