mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 19:44:47 +00:00
Don't crash if token is missing referrals
Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
parent
6d104d60e2
commit
6311077cec
@ -56,9 +56,13 @@
|
||||
(defn starter-pack []
|
||||
(let [pack @(re-frame/subscribe [::invite/starter-pack])
|
||||
tokens (utils/transform-tokens pack)
|
||||
reward-text (cstr/join ", " (map (comp name :symbol first) tokens))]
|
||||
reward-text (->> tokens
|
||||
(map (comp :symbol first))
|
||||
(filter (comp not nil?))
|
||||
(map name)
|
||||
(cstr/join ", "))]
|
||||
[rn/view {:style (starter-pack-style)}
|
||||
[rn/view {:style (styles/reward-tokens-icons (count tokens))}
|
||||
[rn/view {:style (styles/reward-tokens-icons (count tokens))}
|
||||
(doall
|
||||
(for [[{name :name
|
||||
{source :source} :icon} _ idx] tokens]
|
||||
|
Loading…
x
Reference in New Issue
Block a user