mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
add a fallback accountSid for account users (#238)
Co-authored-by: eglehelms <e.helms@cognigy.com>
This commit is contained in:
@@ -122,7 +122,7 @@ export const UserForm = ({ user }: UserFormProps) => {
|
||||
account_sid:
|
||||
scope !== USER_ACCOUNT && currentUser?.scope !== USER_ACCOUNT
|
||||
? null
|
||||
: accountSid,
|
||||
: accountSid || currentUser?.account_sid,
|
||||
})
|
||||
.then(() => {
|
||||
toastSuccess("User created successfully");
|
||||
@@ -152,7 +152,7 @@ export const UserForm = ({ user }: UserFormProps) => {
|
||||
account_sid:
|
||||
scope !== USER_ACCOUNT && currentUser?.scope !== USER_ACCOUNT
|
||||
? null
|
||||
: accountSid,
|
||||
: accountSid || currentUser?.account_sid,
|
||||
})
|
||||
.then(() => {
|
||||
user.refetch();
|
||||
|
||||
Reference in New Issue
Block a user