Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Mar 21, 2024
1 parent f5a72eb commit 4143dcd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
(rf/dispatch
[:standard-auth/authorize
{:on-auth-success (fn [password]
[:dispatch
[:communities/request-to-join-with-addresses
{:community-id id
:password password}]])
(rf/dispatch [:dispatch
[:communities/request-to-join-with-addresses
{:community-id id
:password password}]]))
:on-auth-fail (fn [err]
(log/info "Biometric authentication failed" err)
(rf/dispatch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@
(rf/dispatch
[:hide-bottom-sheet]))}]))}]))
:on-auth-success (fn [password]
[:dispatch
[:communities/edit-shared-addresses
{:community-id community-id
:password password
:airdrop-address address
:on-success (fn []
(rf/dispatch [:dismiss-modal
:address-for-airdrop])
(rf/dispatch
[:hide-bottom-sheet]))}]])}])
(rf/dispatch [:dispatch
[:communities/edit-shared-addresses
{:community-id community-id
:password password
:airdrop-address address
:on-success (fn []
(rf/dispatch
[:dismiss-modal
:address-for-airdrop])
(rf/dispatch
[:hide-bottom-sheet]))}]]))}])
(do
(rf/dispatch [:communities/set-airdrop-address community-id address])
(rf/dispatch [:hide-bottom-sheet])))))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
(rf/dispatch
[:standard-auth/authorize
{:on-auth-success (fn [password]
[:dispatch
[:communities/request-to-join
{:community-id id :password password}]])
(rf/dispatch [:dispatch
[:communities/request-to-join
{:community-id id :password password}]]))
:on-auth-fail (fn [err]
(log/info "Biometric authentication failed" err)
(rf/dispatch [:password-authentication/show
Expand Down

0 comments on commit 4143dcd

Please sign in to comment.