Skip to content

Commit 6867de1

Browse files
committed
Remove declaration of unused variable.
1 parent 2ff1b52 commit 6867de1

File tree

1 file changed

+4
-6
lines changed
  • {{cookiecutter.project_slug}}/frontend/src/store/modules

1 file changed

+4
-6
lines changed

{{cookiecutter.project_slug}}/frontend/src/store/modules/admin.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ export default class AdminModule extends VuexModule {
6767
try {
6868
const loadingNotification = { content: "saving", showProgress: true };
6969
mainStore.addNotification(loadingNotification);
70-
const _response = (
71-
await Promise.all([
72-
api.createUser(mainStore.token, payload),
73-
await new Promise((resolve, _reject) => setTimeout(() => resolve(), 500)),
74-
])
75-
)[0];
70+
await Promise.all([
71+
api.createUser(mainStore.token, payload),
72+
await new Promise((resolve, _reject) => setTimeout(() => resolve(), 500)),
73+
]);
7674
mainStore.removeNotification(loadingNotification);
7775
mainStore.addNotification({
7876
content: "User successfully created",

0 commit comments

Comments
 (0)