fix: replace ?? to || for fix avatar

This commit is contained in:
dap
2025-02-20 18:25:08 +08:00
parent fbb0d641db
commit 9ee5369f35
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ defineEmits<{
}>();
const avatar = computed(
() => props.profile?.user.avatar ?? preferences.app.defaultAvatar,
() => props.profile?.user.avatar || preferences.app.defaultAvatar,
);
const { isDark } = usePreferences();