fix: not updating profile pic preview

This commit is contained in:
Zamitto 2024-06-18 23:47:24 -03:00
parent 634fc61c09
commit dce2f1b333

View file

@ -98,11 +98,11 @@ export const UserEditProfileModal = ({
className={styles.profileAvatarEditContainer}
onClick={handleChangeProfileAvatar}
>
{userProfile.profileImageUrl ? (
{newImageBase64 || userProfile.profileImageUrl ? (
<img
className={styles.profileAvatar}
alt={userProfile.displayName}
src={newImageBase64 ?? userProfile.profileImageUrl}
src={newImageBase64 ?? userProfile.profileImageUrl ?? ""}
/>
) : (
<PersonIcon size={72} />