Skip to content

Commit

Permalink
don't cast to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryn committed Sep 27, 2019
1 parent 75d0b2a commit 514a5c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/status_im/ui/screens/profile/user/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,10 @@

;; flatlist contents
header (header multiaccount)
keycard-account? (boolean keycard-key-uid)
content (flat-list-content
preferred-name registrar tribute-to-talk
active-contacts-count show-backup-seed?
keycard-account?)
keycard-key-uid)

;; generated toolbar and content with header
generated-view (large-toolbar/generate-view
Expand Down
17 changes: 8 additions & 9 deletions src/status_im/ui/screens/wallet/accounts/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,14 @@

(views/defview accounts []
(views/letsubs [{:keys [accounts address keycard-key-uid]} [:multiaccount]]
(let [keycard-account? (boolean keycard-key-uid)]
[react/scroll-view {:horizontal true}
[react/view {:flex-direction :row :padding-top 11 :padding-bottom 12}
(for [account accounts]
^{:key account}
[account-card account])
; TODO: enable keycard support for adding new accounts
(when-not keycard-account?
[add-card])]])))
[react/scroll-view {:horizontal true}
[react/view {:flex-direction :row :padding-top 11 :padding-bottom 12}
(for [account accounts]
^{:key account}
[account-card account])
; TODO: enable keycard support for adding new accounts
(when-not keycard-key-uid
[add-card])]]))

(defn accounts-overview []
[react/view {:flex 1}
Expand Down

0 comments on commit 514a5c9

Please sign in to comment.