Skip to content

Commit

Permalink
Allows for Segment traits to be null (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris authored Aug 25, 2024
1 parent bd5f6fc commit 2617cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/platform/src/client/SegmentController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ router.post('/segment', async ctx => {
project_id: ctx.state.project.id,
user: {
...identity,
email: event.traits.email,
phone: event.traits.phone,
email: event.traits?.email,
phone: event.traits?.phone,
timezone: event.context.timezone,
locale: event.context.locale && parseLocale(event.context.locale),
data: event.traits,
Expand Down

0 comments on commit 2617cb9

Please sign in to comment.