✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: improve error message
AykutSarac637edb86c04b
diff --git a/src/features/modals/DownloadModal/index.tsx b/src/features/modals/DownloadModal/index.tsxindex 00f67f7d..d7995b95 100644--- a/src/features/modals/DownloadModal/index.tsx+++ b/src/features/modals/DownloadModal/index.tsx@@ -92,7 +92,13 @@ export const DownloadModal = ({ opened, onClose }: ModalProps) => {toast.success("Copied to clipboard");gaEvent("clipboard_img");} catch (error) {- toast.error("Failed to copy to clipboard");+ if (error instanceof Error && error.name === "NotAllowedError") {+ toast.error(+ "Clipboard write permission denied. Please allow clipboard access in your browser settings."+ );+ } else {+ toast.error("Failed to copy to clipboard");+ }} finally {toast.dismiss("toastClipboard");onClose();