Skip to content

Commit

Permalink
fix: prevent multiple taps on Register button from opening several tx…
Browse files Browse the repository at this point in the history
… during ENS registration
  • Loading branch information
michaelsbradleyjr committed Apr 24, 2020
1 parent 3fce002 commit 5257bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/ens/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
(i18n/label :t/ens-deposit)]]]
[button {:disabled? (not @checked?)
:label-style (when (not @checked?) {:color colors/gray})
:on-press #(re-frame/dispatch [::ens/register-name-pressed])}
:on-press #(debounce/dispatch-and-chill [::ens/register-name-pressed] 2000)}
(i18n/label :t/ens-register)]]])

(defn- registration
Expand Down

0 comments on commit 5257bc6

Please sign in to comment.