Skip to content

Commit

Permalink
Merge branch 'develop' into milad/19743-remove-send-in-watch-only
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilad75 committed May 9, 2024
2 parents 59850e9 + ab19140 commit 663fccf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/status_im/subs/profile.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,12 @@
:<- [:initials-avatar-font-file]
:<- [:theme]
(fn [[profile ens-names port font-file theme] [_ avatar-opts]]
(replace-multiaccount-image-uri profile ens-names port font-file avatar-opts theme)))
;; Right after logout, this subscription is recomputed, but the sub
;; `:profile/profile` output will always be nil. We skip any further
;; processing because it's wasteful and because it will trigger a schema
;; error.
(when profile
(replace-multiaccount-image-uri profile ens-names port font-file avatar-opts theme))))

(re-frame/reg-sub
:profile/image
Expand Down

0 comments on commit 663fccf

Please sign in to comment.