fix: replace ?? to || for fix avatar
This commit is contained in:
parent
fbb0d641db
commit
9ee5369f35
@ -94,7 +94,7 @@ const menus = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const avatar = computed(() => {
|
const avatar = computed(() => {
|
||||||
return userStore.userInfo?.avatar ?? preferences.app.defaultAvatar;
|
return userStore.userInfo?.avatar || preferences.app.defaultAvatar;
|
||||||
});
|
});
|
||||||
|
|
||||||
async function handleLogout() {
|
async function handleLogout() {
|
||||||
|
@ -24,7 +24,7 @@ defineEmits<{
|
|||||||
}>();
|
}>();
|
||||||
|
|
||||||
const avatar = computed(
|
const avatar = computed(
|
||||||
() => props.profile?.user.avatar ?? preferences.app.defaultAvatar,
|
() => props.profile?.user.avatar || preferences.app.defaultAvatar,
|
||||||
);
|
);
|
||||||
|
|
||||||
const { isDark } = usePreferences();
|
const { isDark } = usePreferences();
|
||||||
|
Loading…
Reference in New Issue
Block a user