Currency input field - fix (#16140)
Currency field used to have default value, but default value on field is
not mandatory. Defaulf default value logic has been removed.
Also test all field type input when empty. ✅
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user