Skip to content

The open alternative to Salesforce, designed for AI.

Currency input field - fix (#16140)

Etienne65480eb49250
diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx
index 6a2252009d2..c10275d04bd 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx
@@ -28,7 +28,7 @@ export const CurrencyFieldInput = () => {
const defaultCurrencyCodeWithoutSQLQuotes = (
defaultValue as FieldCurrencyValue
- ).currencyCode.replace(/'/g, '') as CurrencyCode;
+ )?.currencyCode?.replace(/'/g, '') as CurrencyCode;
const defaultCurrencyCodeIsNotEmpty = isNonEmptyString(
defaultCurrencyCodeWithoutSQLQuotes,