chore: migrate eslint and prettier to biome and fix all linting errors
This commit is contained in:
parent
82413a8212
commit
9bcf233d2c
22 changed files with 397 additions and 481 deletions
17
src/lib/getNameFromRecipient.ts
Normal file
17
src/lib/getNameFromRecipient.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
export const getNameFromRecipient = (
|
||||
joinedNickname: string | null,
|
||||
joinedSystemName: string | null,
|
||||
joinedProfileName: string | null,
|
||||
) => {
|
||||
let name = "Could not determine name";
|
||||
|
||||
if (joinedNickname !== null) {
|
||||
name = joinedNickname;
|
||||
} else if (joinedSystemName !== null && joinedSystemName !== "") {
|
||||
name = joinedSystemName;
|
||||
} else if (joinedProfileName !== null) {
|
||||
name = joinedProfileName;
|
||||
}
|
||||
|
||||
return name;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue