Accounts > Save blank SIP realm as null instead of empty string

This commit is contained in:
James Nuanez
2020-04-21 14:17:51 -07:00
parent 0909e7116e
commit d1f4eaabd4
+2 -2
View File
@@ -187,7 +187,7 @@ const AccountForm = props => {
}
}
if (a.sip_realm === sipRealm) {
if (sipRealm && a.sip_realm === sipRealm) {
errorMessages.push(
'The SIP Realm you have entered is already in use on another one of your accounts.'
);
@@ -224,7 +224,7 @@ const AccountForm = props => {
const axiosData = {
name,
sip_realm: sipRealm,
sip_realm: sipRealm || null,
registration_hook: {
url: regWebhook,
method: method,