diff --git a/packages/ui/modals/connect-provider-modal.tsx b/packages/ui/modals/connect-provider-modal.tsx index ee767ef693..60e1e830cf 100644 --- a/packages/ui/modals/connect-provider-modal.tsx +++ b/packages/ui/modals/connect-provider-modal.tsx @@ -169,17 +169,9 @@ export const ConnectProviderModal: React.FC = ({ const handleCarrierChange = (event: React.ChangeEvent) => { const target = event.target; const value = target.value as CarrierNameType; - let state = ["lang", "language"].reduce( - (acc, cur) => { - if (connection_fields[value][cur]?.default) { - return { ...acc, [cur]: connection_fields[value][cur]?.default }; - } - return acc; - }, - { - carrier_id: `${value.toLocaleLowerCase()}${testMode ? "-test" : ""}`, - }, - ); + let state = { + carrier_id: `${value.toLocaleLowerCase()}${testMode ? "-test" : ""}`, + }; setCarrierName(value); dispatch({ name: "full", value: state });