Token-gated permissions are not displayed on community's homepage #20965 (#20976)

This commit is contained in:
flexsurfer 2024-08-08 12:16:38 +02:00 committed by Andrea Maria Piana
parent 93b748a629
commit 50e41c8ed5
1 changed files with 3 additions and 3 deletions

View File

@ -98,16 +98,16 @@
(update :categories <-categories-rpc) (update :categories <-categories-rpc)
(assoc :role-permissions? (assoc :role-permissions?
(->> community (->> community
:tokenPermissions :token-permissions
vals vals
(some role-permission?))) (some role-permission?)))
(assoc :membership-permissions? (assoc :membership-permissions?
(->> community (->> community
:tokenPermissions :token-permissions
vals vals
(some membership-permission?))) (some membership-permission?)))
(assoc :token-images (assoc :token-images
(reduce (fn [acc {sym :symbol image :image}] (reduce (fn [acc {sym :symbol image :image}]
(assoc acc sym image)) (assoc acc sym image))
{} {}
(:communityTokensMetadata community)))))) (:tokens-metadata community))))))