diff --git a/src/lib/components/EditModal.svelte b/src/lib/components/EditModal.svelte index 24ee7b5..ace0df8 100644 --- a/src/lib/components/EditModal.svelte +++ b/src/lib/components/EditModal.svelte @@ -72,7 +72,7 @@ console.log(adventureToEdit.name); const desc = await generateDescription(adventureToEdit.name); adventureToEdit.description = desc; - // Do something with the updated newAdventure object + // Do something with the updated adventureToEdit object } catch (error) { console.error(error); // Handle the error @@ -91,6 +91,11 @@ let isImageModalOpen: boolean = false; + /** + * Handles the upload event and updates the adventure's image URL. + * + * @param {CustomEvent} e - The custom event containing the key. + */ function upload(e: CustomEvent) { let key = e.detail; console.log("EE" + key); @@ -112,99 +117,127 @@