Skip to content

Commit

Permalink
fix: handle falsy value for name (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
keellyp authored Jul 2, 2024
1 parent 90ea3aa commit 0da68d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/customer/useAddSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const useAddSubscription: UseAddSubscription = ({
? DateTime.fromISO(subsDate).toUTC().toISO()
: undefined,
endingAt: !!subEndDate ? DateTime.fromISO(subEndDate).toUTC().toISO() : null,
name: name || undefined,
name: name ?? undefined,
planOverrides: hasPlanBeingChangedFromInitial
? { ...cleanPlanValues(serializedPlanValues as PlanOverridesInput, formType) }
: undefined,
Expand Down

0 comments on commit 0da68d4

Please sign in to comment.