We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77cae5 commit 932ab11Copy full SHA for 932ab11
packages/ui/src/components/molecule/user-dialog/user-dialog.svelte
@@ -4,9 +4,9 @@
4
import { getShortenName } from '@repo/utils/src/ui.js'
5
6
interface Props {
7
- imageUrl: string
8
- name: string
9
- id: string
+ imageUrl?: string
+ name?: string
+ id?: string
10
}
11
12
let {
@@ -15,7 +15,7 @@
15
id = undefined,
16
}: Props = $props()
17
18
- let shortenedName = $derived(getShortenName(name))
+ let shortenedName = $derived(getShortenName(name ?? ''))
19
20
const items = [
21
{
0 commit comments