Skip to content

Commit 4143dcd

Browse files
committed
Refactor
1 parent f5a72eb commit 4143dcd

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

src/status_im/contexts/communities/actions/accounts_selection/view.cljs

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
(rf/dispatch
5353
[:standard-auth/authorize
5454
{:on-auth-success (fn [password]
55-
[:dispatch
56-
[:communities/request-to-join-with-addresses
57-
{:community-id id
58-
:password password}]])
55+
(rf/dispatch [:dispatch
56+
[:communities/request-to-join-with-addresses
57+
{:community-id id
58+
:password password}]]))
5959
:on-auth-fail (fn [err]
6060
(log/info "Biometric authentication failed" err)
6161
(rf/dispatch

src/status_im/contexts/communities/actions/airdrop_addresses/view.cljs

+11-10
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,17 @@
4040
(rf/dispatch
4141
[:hide-bottom-sheet]))}]))}]))
4242
:on-auth-success (fn [password]
43-
[:dispatch
44-
[:communities/edit-shared-addresses
45-
{:community-id community-id
46-
:password password
47-
:airdrop-address address
48-
:on-success (fn []
49-
(rf/dispatch [:dismiss-modal
50-
:address-for-airdrop])
51-
(rf/dispatch
52-
[:hide-bottom-sheet]))}]])}])
43+
(rf/dispatch [:dispatch
44+
[:communities/edit-shared-addresses
45+
{:community-id community-id
46+
:password password
47+
:airdrop-address address
48+
:on-success (fn []
49+
(rf/dispatch
50+
[:dismiss-modal
51+
:address-for-airdrop])
52+
(rf/dispatch
53+
[:hide-bottom-sheet]))}]]))}])
5354
(do
5455
(rf/dispatch [:communities/set-airdrop-address community-id address])
5556
(rf/dispatch [:hide-bottom-sheet])))))]

src/status_im/contexts/communities/actions/request_to_join/view.cljs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
(rf/dispatch
1818
[:standard-auth/authorize
1919
{:on-auth-success (fn [password]
20-
[:dispatch
21-
[:communities/request-to-join
22-
{:community-id id :password password}]])
20+
(rf/dispatch [:dispatch
21+
[:communities/request-to-join
22+
{:community-id id :password password}]]))
2323
:on-auth-fail (fn [err]
2424
(log/info "Biometric authentication failed" err)
2525
(rf/dispatch [:password-authentication/show

0 commit comments

Comments
 (0)