Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed May 6, 2024
1 parent ff69484 commit cabe5ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/status_im/contexts/wallet/account/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
:default-active @selected-tab
:data (tabs-data watch-only?)
:on-change (rn/use-callback (fn [tab]
(when (and (= :activity tab)
true)
(when (= :activity tab)
(rf/dispatch [:wallet/fetch-activities]))
(reset! selected-tab tab)))
:scrollable? true
Expand Down
4 changes: 2 additions & 2 deletions src/status_im/subs/wallet/activities.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
:<- [:wallet/all-activities]
:<- [:wallet/current-viewing-account-address]
(fn [[activities current-viewing-account-address]]
(let [relevant-activities (filter (fn [{:keys [sender recipient]}]
(let [account-activities (filter (fn [{:keys [sender recipient]}]
(or (= sender current-viewing-account-address)
(= recipient current-viewing-account-address)))
activities)
grouped-by-day (group-by (fn [{:keys [timestamp]}]
(datetime/timestamp->relative-short-date (* timestamp 1000)))
relevant-activities)]
account-activities)]
(map (fn [[date acts]] {:title date :data acts}) grouped-by-day))))

0 comments on commit cabe5ab

Please sign in to comment.