Skip to content

Commit

Permalink
fix: remove undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekaN2 committed Oct 21, 2023
1 parent f25e7bb commit a5f3aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/domain/service/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ export default class UserService {
*
* @param userId - user unique identifier
*/
public async getUserExtensions(userId: User['id']): Promise<User['extensions'] | undefined> {
public async getUserExtensions(userId: User['id']): Promise<User['extensions']> {
const user = await this.getUserById(userId);

return user?.extensions;
return user?.extensions ?? {};
}

/**
Expand Down

0 comments on commit a5f3aa3

Please sign in to comment.