From 67a6a513c7f4fe523dca9200985081081c7c9006 Mon Sep 17 00:00:00 2001 From: seungju Date: Thu, 18 Apr 2024 09:29:09 +0900 Subject: [PATCH] chore: fix issue #91 --- components/molecules/ImageUploadInput.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/molecules/ImageUploadInput.tsx b/components/molecules/ImageUploadInput.tsx index 429edf2de..b2b18f93c 100644 --- a/components/molecules/ImageUploadInput.tsx +++ b/components/molecules/ImageUploadInput.tsx @@ -1,6 +1,7 @@ import { Input } from "@chakra-ui/react"; import { faCameraViewfinder } from "@fortawesome/pro-light-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { captureException } from "@sentry/nextjs"; import Image from "next/image"; import { useRef, useState } from "react"; import styled from "styled-components"; @@ -45,6 +46,7 @@ export default function ImageUploadInput({ setImageUrl: changeImage }: IImageUpl setImageUrl(image); changeImage(file); } else { + captureException(error); console.error("Error converting HEIC to JPEG", error); } }