fix: session related bugs

This commit is contained in:
2024-02-08 15:37:57 -06:00
parent 9878ca7f1c
commit e105edbbee
5 changed files with 10 additions and 9 deletions
+3 -3
View File
@@ -73,7 +73,7 @@ const EquipoPage: FC = async () => {
className={cx(card({ variant: 'retro' }).media, center())}
>
<NextImage
src={user.prefs.profilePicture ?? '/images/EntGamers.png'}
src={user.prefs.profilePicture !== undefined && user.prefs.profilePicture.trim() !== '' ? user.prefs.profilePicture.trim() : '/images/EntGamers.png'}
alt={user.name !== '' ? user.name : `Usuario ${index + 1} avatar`}
width={120}
height={120}
@@ -135,7 +135,7 @@ const EquipoPage: FC = async () => {
className={cx(card({ variant: 'retro' }).media, center())}
>
<NextImage
src={user.prefs.profilePicture ?? '/images/EntGamers.png'}
src={user.prefs.profilePicture !== undefined && user.prefs.profilePicture.trim() !== '' ? user.prefs.profilePicture.trim() : '/images/EntGamers.png'}
alt={user.name !== '' ? user.name : `Usuario ${index + 1} avatar`}
width={120}
height={120}
@@ -197,7 +197,7 @@ const EquipoPage: FC = async () => {
className={cx(card({ variant: 'retro' }).media, center())}
>
<NextImage
src={user.prefs.profilePicture ?? '/images/EntGamers.png'}
src={user.prefs.profilePicture !== undefined && user.prefs.profilePicture.trim() !== '' ? user.prefs.profilePicture.trim() : '/images/EntGamers.png'}
alt={user.name !== '' ? user.name : `Usuario ${index + 1} avatar`}
width={120}
height={120}