Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexd-bes committed Sep 18, 2024
1 parent 1181ce4 commit 653ab43
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export const useDownloadImages = (
},
{
onSuccess: async fetchedImages => {
if (!fetchedImages?.length) return;
// if there is only one image, download it directly
if (fetchedImages.length === 1) {
const { blob } = fetchedImages[0];
const { type } = blob;
Expand Down

0 comments on commit 653ab43

Please sign in to comment.