Clean and lint

This commit is contained in:
Nathan Barber
2021-12-01 01:52:18 -05:00
parent c0d5778d93
commit 999cc0a37c
6 changed files with 32 additions and 35 deletions

View File

@@ -80,7 +80,7 @@ const CreateGroup = (props) => {
? updateGroups(0, limit)
.then((data) => dispatchPageUpdate(data, 0))
.then(() => history.push("/groups"))
.catch((err) =>
.catch(() =>
setErrorAlert(`Could not update groups list.`)
)
: setErrorAlert(
@@ -91,7 +91,7 @@ const CreateGroup = (props) => {
}`
);
})
.catch((err) => setErrorAlert(`Failed to create group.`));
.catch(() => setErrorAlert(`Failed to create group.`));
}}
>
Create