fix: prevent multiple taps on Register button from opening several tx during ENS registration

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Michael Bradley, Jr 2020-04-24 09:04:05 -05:00 committed by Andrey Shovkoplyas
parent 439643daa4
commit 5002b4c7bb
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4

View File

@ -295,7 +295,7 @@
(i18n/label :t/ens-deposit)]]] (i18n/label :t/ens-deposit)]]]
[button {:disabled? (not @checked?) [button {:disabled? (not @checked?)
:label-style (when (not @checked?) {:color colors/gray}) :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)]]]) (i18n/label :t/ens-register)]]])
(defn- registration (defn- registration