Skip to content

Commit

Permalink
fix: upload of submission doesn't show success message if it has failed
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed May 23, 2024
1 parent 8b3c4fc commit 98bc018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/submissions/SubmissionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const onUpload = async (callback: () => void): Promise<void> => {
if (group.value !== null) {
try {
console.log(files.value);
await createSubmission(files.value as File[], group.value.id);
await createSubmission(files.value as File[], group.value.id, false);
addSuccessMessage(t('toasts.messages.success'), t('toasts.messages.submissions.create.success'));
if (submission.value != null) {
submissions.value = [...(submissions.value ?? []), submission.value];
Expand Down

0 comments on commit 98bc018

Please sign in to comment.