remove warning message if there is no device call application (#334)

This commit is contained in:
Hoan Luu Huu
2023-10-20 18:18:01 +07:00
committed by GitHub
parent af8c09587c
commit a20e1513bc
@@ -107,8 +107,6 @@ export const ClientsForm = ({ client }: ClientsFormProps) => {
if (!accountSid || !accounts || !acc) return;
if (!acc?.sip_realm) {
setErrorMessage(`Sip realm is not set for the account.`);
} else if (!acc?.device_calling_application_sid) {
setErrorMessage(`Device calling application is not set for the account.`);
} else {
setErrorMessage("");
}