From af843a24c64b307618974270b83193c881e2f54a Mon Sep 17 00:00:00 2001 From: shatfield4 Date: Thu, 19 Sep 2024 12:16:48 -0700 Subject: [PATCH] get rid of example.png image name check --- frontend/src/hooks/useImagePaste.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/hooks/useImagePaste.js b/frontend/src/hooks/useImagePaste.js index e5dddb00e..a25574b29 100644 --- a/frontend/src/hooks/useImagePaste.js +++ b/frontend/src/hooks/useImagePaste.js @@ -9,9 +9,7 @@ export function useImagePaste(onImagePaste) { e.preventDefault(); const blob = items[i].getAsFile(); const fileName = - blob.name !== "image.png" - ? blob.name - : `pasted-image.${blob.type.split("/")[1]}`; + blob.name || `pasted-image.${blob.type.split("/")[1]}`; const file = new File([blob], fileName, { type: blob.type }); onImagePaste(file); break;