Skip to content

Commit

Permalink
refactor(randFirstName): 💡 remove elvis for data variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kabrunko-dev committed Dec 21, 2023
1 parent 1e23c0f commit cd1cbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/falso/src/lib/first-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export function randFirstName<Options extends NameOptions = never>(
const data = options?.locale || localeDefault;

const names: string[] = withAccents
? data?.withAccents[gender]
: data?.withoutAccents[gender];
? data.withAccents[gender]
: data.withoutAccents[gender];

return fake(names, options);
}

0 comments on commit cd1cbf9

Please sign in to comment.