fix display name
This commit is contained in:
parent
f7547a4c62
commit
ad469129bc
8 changed files with 11 additions and 8 deletions
|
|
@ -8,8 +8,7 @@ interface DeleteProps {
|
|||
}
|
||||
|
||||
export default function DeleteUser({ user, isOpen, setIsOpen }: DeleteProps) {
|
||||
const name =
|
||||
(user.displayName?.length ?? 0) > 0 ? user.displayName : user.name;
|
||||
const name = user.name;
|
||||
|
||||
return (
|
||||
<Dialog isOpen={isOpen} onOpenChange={setIsOpen}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue