From 5a53b93624d2dee32d2b24b2206139e291c8dafe Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Mon, 7 Apr 2025 11:49:59 +0100 Subject: [PATCH] Fixing messages --- frontend/src/app/album/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/album/page.tsx b/frontend/src/app/album/page.tsx index 773a9e6..aef3380 100644 --- a/frontend/src/app/album/page.tsx +++ b/frontend/src/app/album/page.tsx @@ -46,7 +46,7 @@ export default function Page() { const formData = new FormData(event.currentTarget); try { if (formData.get('id') == "") { - const result = await createAlbum(formData) + await createAlbum(formData) .then(response => { if (response.ok) { handleSnackbar(`Successfully created Album with ID ${formData.get("id")}: ${result}`, true); @@ -55,7 +55,7 @@ export default function Page() { }) .catch(error => {handleSnackbar(`Failed to create Album with ID ${formData.get("id")}: ${result}`, false);}); } else { - const result = await updateAlbum(formData) + await updateAlbum(formData) .then(response => { if (response.ok) { handleSnackbar(`Successfully updated Album with ID ${formData.get("id")}: ${result}`, true);