mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-23 14:39:32 +08:00
chore(blocks-antd): Use optional chaining instead of ternary.
This commit is contained in:
parent
05a4ba24fe
commit
f1dad32442
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user