This commit is contained in:
Devesh Kolte 2026-08-11 20:08:04 +07:00 committed by GitHub
commit de46ee5922
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -11,7 +11,7 @@
id: string;
name: string;
email: string;
profileImagePath: string;
profileImagePath: string | null;
avatarColor: UserAvatarColor;
profileChangedAt: string;
}

View file

@ -36,9 +36,9 @@
<Icon icon={mdiAndroid} size="40" />
{:else if session.deviceOS === 'iOS' || session.deviceOS === 'macOS'}
<Icon icon={mdiApple} size="40" />
{:else if session.deviceOS.includes('Safari')}
{:else if session.deviceOS?.includes('Safari')}
<Icon icon={mdiAppleSafari} size="40" />
{:else if session.deviceOS.includes('Windows')}
{:else if session.deviceOS?.includes('Windows')}
<Icon icon={mdiMicrosoftWindows} size="40" />
{:else if session.deviceOS === 'Linux'}
<Icon icon={mdiLinux} size="40" />

View file

@ -16,7 +16,7 @@
const onSave = async (color: UserAvatarColor) => {
try {
if (authManager.user.profileImagePath !== '') {
if (authManager.user.profileImagePath) {
await deleteProfileImage();
}
@ -38,7 +38,7 @@
<button type="button" onclick={() => onSave(color)}>
<UserAvatar
label={color}
user={{ ...authManager.user, profileImagePath: '', avatarColor: color }}
user={{ ...authManager.user, profileImagePath: null, avatarColor: color }}
size="xl"
/>
</button>

View file

@ -201,7 +201,7 @@
personIds.map(async (personId) => {
const person = await getPerson({ id: personId });
if (person.name == '') {
if (!person.name) {
return $t('no_name');
}