Skip to content

Commit

Permalink
bug(subscription) allow edit pending subscription start date
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jan 12, 2024
1 parent 1d20ed8 commit b369c0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/hooks/customer/useAddSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ export const useAddSubscription: UseAddSubscription = ({
? DateTime.fromISO(existingSubscription?.startedAt)
.toUTC()
.toISO()
: undefined,
: subsDate
? DateTime.fromISO(subsDate).toUTC().toISO()
: undefined,
endingAt: !!subEndDate ? DateTime.fromISO(subEndDate).toUTC().toISO() : null,
name: name || undefined,
planOverrides: hasPlanBeingChangedFromInitial
Expand Down
2 changes: 1 addition & 1 deletion src/pages/CreateSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ const FormPlanWrapper = styled.div`
const InlineFields = styled.div`
display: flex;
gap: ${theme.spacing(6)};
align-items: flex-end;
align-items: flex-start;
> * {
flex: 1;
Expand Down

0 comments on commit b369c0e

Please sign in to comment.