diff --git a/src/components/customers/addDrawer/ExternalAppsAccordion.tsx b/src/components/customers/addDrawer/ExternalAppsAccordion.tsx
index 7f5675a9c..b8223cf0a 100644
--- a/src/components/customers/addDrawer/ExternalAppsAccordion.tsx
+++ b/src/components/customers/addDrawer/ExternalAppsAccordion.tsx
@@ -60,6 +60,20 @@ import Stripe from '~/public/images/stripe.svg'
import Xero from '~/public/images/xero.svg'
import { MenuPopper, theme } from '~/styles'
+const hubspotExternalIdTypeCopyMap: Record<
+ HubspotTargetedObjectsEnum,
+ Record<'label' | 'placeholder', string>
+> = {
+ [HubspotTargetedObjectsEnum.Companies]: {
+ label: 'text_1729602057769exfgebgaj4g',
+ placeholder: 'text_1729602057769w37ljj318sn',
+ },
+ [HubspotTargetedObjectsEnum.Contacts]: {
+ label: 'text_1729067791880uwec7af9cpq',
+ placeholder: 'text_1729067791880y0th6mtz2av',
+ },
+}
+
gql`
fragment CustomerForExternalAppsAccordion on Customer {
id
@@ -1269,40 +1283,52 @@ export const ExternalAppsAccordion = ({ formikProps, isEdition }: TExternalAppsA
formikProps={formikProps}
/>
-
+ {!!!!selectedHubspotIntegration.targetedObject && (
+ <>
+
- {
- const newHubspotIntegrationObject = {
- ...selectedHubspotIntegration,
- syncWithProvider: checked,
- }
+ {
+ const newHubspotIntegrationObject = {
+ ...selectedHubspotIntegration,
+ syncWithProvider: checked,
+ }
- if (!isEdition && checked) {
- newHubspotIntegrationObject.externalCustomerId = ''
- }
+ if (!isEdition && checked) {
+ newHubspotIntegrationObject.externalCustomerId = ''
+ }
- formikProps.setFieldValue(
- `${hubspotIntegrationpointerInIntegrationCustomer}`,
- newHubspotIntegrationObject,
- )
- }}
- />
+ formikProps.setFieldValue(
+ `${hubspotIntegrationpointerInIntegrationCustomer}`,
+ newHubspotIntegrationObject,
+ )
+ }}
+ />
+ >
+ )}
>
)}
diff --git a/translations/base.json b/translations/base.json
index 7a469a358..9781315a4 100644
--- a/translations/base.json
+++ b/translations/base.json
@@ -2515,6 +2515,8 @@
"text_17290677918809xyyuizjvtk": "Targeted HubSpot object",
"text_1729067791880uwec7af9cpq": "HubSpot Contact ID",
"text_1729067791880y0th6mtz2av": "Type a HubSpot Contact ID",
+ "text_1729602057769exfgebgaj4g": "HubSpot Company ID",
+ "text_1729602057769w37ljj318sn": "Type a HubSpot Company ID",
"text_1729067791880abj1lzd7dn9": "This customer will be created to HubSpot after editing in Lago",
"text_17285747264958mqbtws3em8": "Dunning",
"text_1728574726495473mszb2j27": "Automatic payment retries and targeted emails to settle customers’ overdue balances.",