mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-10 11:33:01 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -98,13 +98,13 @@ const AddUser = (props) => {
|
||||
.then((data) => dispatchPageChange(data, 0))
|
||||
.then(() => history.push("/"))
|
||||
.catch(() =>
|
||||
setErrorAlert(`Failed to update users.`)
|
||||
setErrorAlert(`Failed to update users.`),
|
||||
)
|
||||
: setErrorAlert(
|
||||
`Failed to create user. ${
|
||||
data.status == 409 ? "User already exists." : ""
|
||||
}`
|
||||
)
|
||||
}`,
|
||||
),
|
||||
)
|
||||
.catch(() => setErrorAlert(`Failed to create user.`));
|
||||
}}
|
||||
|
Reference in New Issue
Block a user