Skip to content

Commit a2badbd

Browse files
committed
dont display previous state when checking
1 parent 908e456 commit a2badbd

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

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

+23-21
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
(rf/dispatch [:communities/get-permissioned-balances id])
5555
(fn []
5656
(let [{:keys [name color images]} (rf/sub [:communities/community id])
57-
{:keys [highest-permission-role]} (rf/sub [:community/token-gated-overview id])
57+
{:keys [checking?
58+
highest-permission-role]} (rf/sub [:community/token-gated-overview id])
5859
accounts (rf/sub [:wallet/accounts-without-watched-accounts])
5960
selected-addresses (rf/sub [:communities/selected-permission-addresses id])
6061
share-all-addresses? (rf/sub [:communities/share-all-addresses? id])
@@ -97,26 +98,27 @@
9798
:key-fn :address
9899
:data accounts}]
99100

100-
(if (and highest-permission-role (seq selected-addresses))
101-
[rn/view
102-
{:style style/highest-role}
103-
[quo/text
104-
{:size :paragraph-2
105-
:style {:color colors/neutral-50}}
106-
(i18n/label :t/eligible-to-join-as)]
107-
[quo/context-tag
108-
{:type :icon
109-
:icon :i/members
110-
:size 24
111-
:context highest-role-text}]]
112-
[quo/info-message
113-
{:type :error
114-
:size :default
115-
:icon :i/info
116-
:style {:justify-content :center}}
117-
(if (empty? selected-addresses)
118-
(i18n/label :t/no-addresses-selected)
119-
(i18n/label :t/addresses-dont-contain-tokens-needed))])
101+
(when-not checking?
102+
(if (and highest-permission-role (seq selected-addresses))
103+
[rn/view
104+
{:style style/highest-role}
105+
[quo/text
106+
{:size :paragraph-2
107+
:style {:color colors/neutral-50}}
108+
(i18n/label :t/eligible-to-join-as)]
109+
[quo/context-tag
110+
{:type :icon
111+
:icon :i/members
112+
:size 24
113+
:context highest-role-text}]]
114+
[quo/info-message
115+
{:type :error
116+
:size :default
117+
:icon :i/info
118+
:style {:justify-content :center}}
119+
(if (empty? selected-addresses)
120+
(i18n/label :t/no-addresses-selected)
121+
(i18n/label :t/addresses-dont-contain-tokens-needed))]))
120122

121123
[rn/view {:style style/buttons}
122124
[quo/button

src/status_im/subs/communities.cljs

+1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@
330330
highest-permission-role (:type highest-role)
331331
can-request-access? (and (boolean highest-permission-role) (not networks-not-supported?))]
332332
{:can-request-access? can-request-access?
333+
:checking? checking?
333334
:highest-permission-role highest-permission-role
334335
:networks-not-supported? networks-not-supported?
335336
:no-member-permission? (and highest-permission-role

0 commit comments

Comments
 (0)