We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff1b52 commit 6867de1Copy full SHA for 6867de1
{{cookiecutter.project_slug}}/frontend/src/store/modules/admin.ts
@@ -67,12 +67,10 @@ export default class AdminModule extends VuexModule {
67
try {
68
const loadingNotification = { content: "saving", showProgress: true };
69
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];
+ await Promise.all([
+ api.createUser(mainStore.token, payload),
+ await new Promise((resolve, _reject) => setTimeout(() => resolve(), 500)),
+ ]);
76
mainStore.removeNotification(loadingNotification);
77
mainStore.addNotification({
78
content: "User successfully created",
0 commit comments