dashboard: fix server imports in client
This commit is contained in:
6
apps/dashboard/src/utils/getters.ts
Normal file
6
apps/dashboard/src/utils/getters.ts
Normal 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(' ');
|
||||
}
|
||||
Reference in New Issue
Block a user