From d3abcda2abef46846596abb9b29f538d5c1aed26 Mon Sep 17 00:00:00 2001 From: Davide Marcoli <69892203+davidemarcoli@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:23:06 +0200 Subject: [PATCH] fix: wrong message when adding an item manually (#156) --- src/routes/[type]/[id]/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/[type]/[id]/+page.svelte b/src/routes/[type]/[id]/+page.svelte index b9b9b59..3f6964d 100644 --- a/src/routes/[type]/[id]/+page.svelte +++ b/src/routes/[type]/[id]/+page.svelte @@ -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 @@ -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'); }