From 1ed8d1865f9a9550fce5e8e49f2bf117e7acbad9 Mon Sep 17 00:00:00 2001 From: Kelly Phan Date: Wed, 28 Aug 2024 12:22:06 +0200 Subject: [PATCH] fix(lago-257): add empty string on save --- src/core/serializers/serializePlanInput.ts | 2 ++ src/generated/graphql.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/src/core/serializers/serializePlanInput.ts b/src/core/serializers/serializePlanInput.ts index e3618363f..497bb29dc 100644 --- a/src/core/serializers/serializePlanInput.ts +++ b/src/core/serializers/serializePlanInput.ts @@ -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), ), diff --git a/src/generated/graphql.tsx b/src/generated/graphql.tsx index 750f826fd..d143ddd9a 100644 --- a/src/generated/graphql.tsx +++ b/src/generated/graphql.tsx @@ -140,6 +140,7 @@ export type AnrokBreakdownObject = { export type AnrokCustomer = { __typename?: 'AnrokCustomer'; + externalAccountId?: Maybe; externalCustomerId?: Maybe; id: Scalars['ID']['output']; integrationCode?: Maybe;