Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed May 23, 2024
1 parent e5c2503 commit 9fb95d0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions frontend/src/views/submissions/SubmissionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,14 @@ const onUpload = async (callback: () => void): Promise<void> => {
try {
console.log(files.value);
await createSubmission(files.value as File[], group.value.id);
addSuccessMessage(
t('toasts.messages.success'),
t('toasts.messages.submissions.create.success')
);
addSuccessMessage(t('toasts.messages.success'), t('toasts.messages.submissions.create.success'));
if (submission.value != null) {
submissions.value = [...(submissions.value ?? []), submission.value];
}
files.value = [];
callback();
} catch (e) {
addErrorMessage(
t('toasts.messages.error'),
t('toasts.messages.submissions.create.error')
);
addErrorMessage(t('toasts.messages.error'), t('toasts.messages.submissions.create.error'));
}
}
};
Expand Down

0 comments on commit 9fb95d0

Please sign in to comment.