Skip to content

Commit

Permalink
fix(lago-257): add empty string on save
Browse files Browse the repository at this point in the history
  • Loading branch information
keellyp committed Aug 28, 2024
1 parent 41357d7 commit 1ed8d18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/serializers/serializePlanInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,14 @@ export const serializePlanInput = (values: PlanFormInput) => {
usageThresholds: [
...(nonRecurringUsageThresholds ?? []).map((threshold) => ({
...threshold,
thresholdDisplayName: threshold.thresholdDisplayName,
amountCents: Number(serializeAmount(threshold.amountCents, values.amountCurrency)),
})),
...(recurringUsageThreshold
? [
{
...recurringUsageThreshold,
thresholdDisplayName: recurringUsageThreshold.thresholdDisplayName,
amountCents: Number(
serializeAmount(recurringUsageThreshold.amountCents, values.amountCurrency),
),
Expand Down
1 change: 1 addition & 0 deletions src/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export type AnrokBreakdownObject = {

export type AnrokCustomer = {
__typename?: 'AnrokCustomer';
externalAccountId?: Maybe<Scalars['String']['output']>;
externalCustomerId?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
integrationCode?: Maybe<Scalars['String']['output']>;
Expand Down

0 comments on commit 1ed8d18

Please sign in to comment.