dashboard: fix server imports in client

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-19 23:33:15 +01:00
parent ffed9bfaa5
commit 2469c6e1b8
5 changed files with 10 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
import type { IServiceProfile } from '@openpanel/db';
export function getProfileName(profile: IServiceProfile | undefined | null) {
if (!profile) return 'No name';
return [profile.firstName, profile.lastName].filter(Boolean).join(' ');
}