chore(blocks-antd): Use optional chaining instead of ternary.

This commit is contained in:
Machiel 2024-07-16 11:48:27 +02:00
parent 05a4ba24fe
commit f1dad32442

View File

@ -208,7 +208,7 @@ const PhoneNumberInput = ({
}
const region = value?.region ?? {};
const phone_number = region.dial_code ? `${region.dial_code}${input}` : input;
const phone_number = `${value?.region?.dial_code ?? ''}${input}`;
methods.setValue({
input,