I see the hack and my curiosity was piqued XD
the message say "This is a hack to ensure that image generated is as expected. Without repeating generateImage(), at times, the image wont be generated correctly"
when i try this ( by removing repetition ) :
const handleDownload = async () => { // TODO: Fix if possible. This is a hack to ensure that image generated is as expected. Without repeating generateImage(), at times, the image wont be generated correctly. const generatedImageUrl = await generateImage() if (generatedImageUrl) { download(generatedImageUrl, "profile-pic.png") } };
the output work as expected, where is the problem ?
thank you for you good work
I see the hack and my curiosity was piqued XD
the message say "This is a hack to ensure that image generated is as expected. Without repeating generateImage(), at times, the image wont be generated correctly"
when i try this ( by removing repetition ) :
const handleDownload = async () => { // TODO: Fix if possible. This is a hack to ensure that image generated is as expected. Without repeating generateImage(), at times, the image wont be generated correctly. const generatedImageUrl = await generateImage() if (generatedImageUrl) { download(generatedImageUrl, "profile-pic.png") } };the output work as expected, where is the problem ?
thank you for you good work