Skip to content

Commit

Permalink
chore: use event enum instead of hardcoded string (#7890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zangetsu101 authored Nov 4, 2024
1 parent 375df64 commit 062757e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/search/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const transformData = (
return {
id: assignedReg.id,
name:
assignedReg.type === 'Marriage'
assignedReg.type === Event.Marriage
? mergedMarriageName
: (createNamesMap(names as HumanName[])[locale] as string) ||
(createNamesMap(names as HumanName[])[LANG_EN] as string) ||
Expand Down

0 comments on commit 062757e

Please sign in to comment.