mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
Accounts > Save blank SIP realm as null instead of empty string
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user