[#17507] fix: image placeholder issue in create-profile (#17645)

This commit is contained in:
Mohsen 2023-10-17 17:28:00 +03:00 committed by GitHub
parent 428d79607e
commit fc284f466f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -18,7 +18,7 @@
;; NOTE - validation should match with Desktop
;; https://github.com/status-im/status-desktop/blob/2ba96803168461088346bf5030df750cb226df4c/ui/imports/utils/Constants.qml#L468
;;
;;
(def emoji-regex
(new
js/RegExp
@ -172,11 +172,7 @@
{:content (fn []
[method-menu/view on-change-profile-pic])
:shell? true}]))
:image-picker-props {:profile-picture (or
@profile-pic
(rf/sub
[:profile/onboarding-placeholder-avatar
@profile-pic]))
:image-picker-props {:profile-picture @profile-pic
:full-name (if (seq @full-name)
@full-name
(i18n/label :t/your-name))