fix: page top is rendering empty avatar icon if no avatar props are sent (#19638)

This commit is contained in:
Brian Sztamfater 2024-04-18 09:48:42 -03:00 committed by GitHub
parent f708cdcf50
commit 3526355e23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@
[{:keys [title title-accessibility-label input counter-top counter-bottom
title-right title-right-props]
avatar-props :avatar}]
(let [avatar-props (assoc avatar-props :size :size-32)
(let [avatar-props (when avatar-props
(assoc avatar-props :size :size-32))
title-props (assoc title-right-props
:title title
:right title-right