MSP-3105 add getUserFullName in utils/userUtils

This commit is contained in:
Anastasiia committed 2024-04-18 13:48:07 +03:00
1 parent 3fc78ec432
commit 07b8a04782
2 files changed
+32

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
import { UserType } from '@type/user.type.ts'
export const getUserFullName = (user: UserType): string =>
user ? `${user.lastName} ${user.firstName}` : ''