Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed May 8, 2024
1 parent c9528d8 commit fe766d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(defn on-press-add-saved-address
[]
(when true
(rf/dispatch [:wallet/add-address
(rf/dispatch [:wallet/add-address-to-save
{:title :t/add-address
:description :t/save-address-description
:input-title :t/address-or-ens-name
Expand Down
4 changes: 2 additions & 2 deletions src/status_im/contexts/wallet/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,14 @@
{:fx [[:dispatch [:navigate-to screen props]]]
:db (assoc-in db [:wallet :ui :currently-added-address] props)})

(rf/reg-event-fx :wallet/add-address add-address-to-watch)
(rf/reg-event-fx :wallet/add-address-to-watch add-address-to-watch)

(defn add-address-to-save
[{:keys [db]} [{:keys [screen] :as props}]]
{:fx [[:dispatch [:open-modal screen props]]]
:db (assoc-in db [:wallet :ui :currently-added-address] props)})

(rf/reg-event-fx :wallet/add-address add-address-to-save)
(rf/reg-event-fx :wallet/add-address-to-save add-address-to-save)

(defn confirm-add-address-to-save
[{:keys [db]} [{:keys [ens? address]}]]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/contexts/wallet/home/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:accessibility-label :add-a-contact
:label (i18n/label :t/add-address)
:sub-label (i18n/label :t/add-address-description)
:on-press #(rf/dispatch [:wallet/add-address
:on-press #(rf/dispatch [:wallet/add-address-to-watch
{:title :t/add-address-to-watch
:description :t/enter-eth
:input-title :t/eth-or-ens
Expand Down

0 comments on commit fe766d8

Please sign in to comment.