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);