Skip to content

Commit

Permalink
fix: wrong message when adding an item manually (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidemarcoli authored Oct 26, 2024
1 parent b874092 commit d3abcda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/[type]/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
toast.error('Input cannot be empty');
return;
}
const { error } = await ItemsService.addItemManually({
const { data, error } = await ItemsService.addItemManually({
query: {
imdb_id,
input
Expand All @@ -144,7 +144,7 @@
toast.error((error as string) ?? 'Unknown error');
return;
}
toast.success('Added successfully');
toast.success(data?.message ?? 'Processing of the item has started');
}
</script>

Expand Down

0 comments on commit d3abcda

Please sign in to comment.